How to get out of 'OutOfMemoryError'???
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vaibhav_Sanas
Posted On:   Wednesday, May 14, 2003 11:43 PM

Hi ! I get 'java/lang/OutOfMemoryError' in my midlet when I try to run it from Motorola's i88s device. Size of my jar file is 52.6 KB. I get following warning when the application is installed using Motorola iDEN SDK/Emulator: Install Succeeded! Occupied Flash Memory: 172508 bytes Occupied Data Space: 1833 bytes Warning: The size of this jar file is 53881 bytes (52.6KB). It is larger than the soft limit of device i88s, which is 51200 bytes (50KB)! I think if my application would have been of smaller size, under 50KB, it would have worked. But the application is already optimized with obfuscation tool and I can not really reduce it any further.    More>>

Hi !

I get 'java/lang/OutOfMemoryError' in my midlet when I try to run it from Motorola's i88s device. Size of my jar file is 52.6 KB. I get following warning when the application is installed using Motorola iDEN SDK/Emulator:

Install Succeeded!
Occupied Flash Memory: 172508 bytes
Occupied Data Space: 1833 bytes
Warning: The size of this jar file is 53881 bytes (52.6KB). It is larger than the soft limit of device i88s, which is 51200 bytes (50KB)!


I think if my application would have been of smaller size, under 50KB, it would have worked. But the application is already optimized with obfuscation tool and I can not really reduce it any further.

Is there any way to solve this problem?

Thanks in advance.

~Vai

   <<Less

Re: How to get out of 'OutOfMemoryError'???

Posted By:   John_Smith  
Posted On:   Monday, May 26, 2003 02:22 AM

If you are using any resources, try to optimize them. For example, you can use jPictureSqueeer at www.gamestry.com/developer for packing images.

Re: How to get out of 'OutOfMemoryError'???

Posted By:   Eelco_Cramer  
Posted On:   Wednesday, May 14, 2003 11:56 PM

Not really. You could look into all the classes that are in your application and remove the ones that are not used. If you want your application to work on that handset the only thing you can do is reduce the size of your application.


Good luck!

About | Sitemap | Contact