Application memory on CLDC/MIDP for PalmOS
Hello,
I've got serious problem running my MIDlet on PalmOS. It seems, that the maximum amount of memory I can assign to an application is 64kB. It doesn't matter how much memory Palm (or POSE) has, I cannot increase application memory in JavaHQ. Is there any possibility to change it. I do need more memory!
Thanks for your help,
[359 byte] By [
Rinc] at [2007-9-26 8:28:57]

[Rinc],
The App Memory parameter under the Global Preferences settings of the Java HQ sets how much memory is used to run the MIDlet class file. The default value is set based on the PalmOS device available memory.
From what I gathered the 64kb is maximum for a 8Mb PalmOS device and I assuming that this is what you have on your Palm top.
You probably need to tune your MIDlet to run under lower memory requirement.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/
Thanks,
I have one more question. When my application (MIDlet) is starting, it creates many classes (arrays, Vectors,...) which are not not used afterwards. I think, the garbage collection should take care of disposing them, but it seems like they are not disposed and this is from my memory problems came from. I tried using "System.gc()", but it didn't help.
Could You tell me somethig about "gc", does it work at all or what should I do to make it working. I tried to trace it, but when I check STDOUT.txt (for testing I'm using POSE) the amount of garbage collected bytes is 0 :(
Thanks in advance
Chris Bilinski
Rinc at 2007-7-1 19:07:48 >
