This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

out of heap memory error  RSS feed

 
Rishi Tyagi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am facing an error "out of heap memory" in a j2me application. My Application size is 32.1KB
When i run the same application in the ktoolbar emulator then it works fine but when i try to run the same application in siemens SL45i or M50 emulators it gives the above error.
Is there any body who can help me for this error
Rishi
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Things I can think of:
1. Remember to close all network connections,
streams and RMS record stores after you use them.
2. If you need to fetch long text from the
network or display long messages in a text box,
you might want to truncate it first.
 
Eric Giguere
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your application is using too much memory. You have to change it to create less objects, to allocate less memory for arrays, etc.
 
Vipul Patel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also facing same problem with M50, pl reply if anyone find the solution?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!