Whereas most devices allocate a fixed amount of memory to the Java runtime, Series 60s allocate memory as required by the Java application. "Unlimited", because there is no fixed limit.
Of course, the amount of physical memory is limited. The operating system cannot provide the Java runtime with more memory than exists on the device.
The actual maximum will depend on:
* How much physical memory the device has.
* How much memory is being used by other applications running on the device.
If the browser and media player are running, for example, there will be less memory to provide to the Java runtime. The device will attempt to provide the amount of memory your application wants, but there are no guarantees.
Usually, emulators allow you to configure the amount of memory they will provide. For the WTK 2.5.2 emulator, you do this like:
Code:
emulator -Xheapsize:16M -Xdescriptor:myapp.jad
I don't know the options for the emulator you're using. Check the documentation.
Cheers,
Graham.