aspose file tools*
The moose likes Java Micro Edition and the fly likes out of heap memory error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "out of heap memory error" Watch "out of heap memory error" New topic
Author

out of heap memory error

Rishi Tyagi
Ranch Hand

Joined: Feb 14, 2002
Posts: 100
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

Joined: Mar 07, 2002
Posts: 1427
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.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Eric Giguere
Ranch Hand

Joined: Oct 25, 2000
Posts: 170
Your application is using too much memory. You have to change it to create less objects, to allocate less memory for arrays, etc.


Eric Giguere
Author/Co-Author of: Mobile Information Device Profile for Java 2 Micro Edition: Professional Developer's Guide, Java 2 Micro Edition: Professional Developer's Guide and PalmTM Database Programming: The Complete Developer's Guide
Vipul Patel
Greenhorn

Joined: Oct 26, 2002
Posts: 1
I am also facing same problem with M50, pl reply if anyone find the solution?


S/W Analyst,<br />Gateway Technolabs
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: out of heap memory error