I hope someone could help me with my strange problem:
My program is now 57kb as jar-file; the class-files are 126kb in sum + about 8kb for graphics + mabye 20kb for variables.
When i launch the class-file in the 7210-emultor everything works perfect. But when i create a jar-file and try to launch it on the 7210-emultor it tells my "Out of memory".
I already tested, that there are still about 18kb free until the emulator creates the same errormessage with using the class-files for starting.
Does the 7210 need more memory when it executes the jar-files instead of the class-files? What information is correct for the "real" Nokia 7210? I cannot test it on the real device, because i dont have a 7210...
Thats very confusing; i hope someone can help me...
In general, I find that memory usage on the 7210 emulator (running from a JAR) is similar to my 6100 phone. So I'd say that if it doesn't load on the emulator, it won't work on the real thing (or may not work on some other Series 40 devices, as they don't all have exactly the same heap size). It might be worth increasing the heap size in the emulator to see how far short you are.
You may need to reduce the memory requirements of your application. Everything in Java tends to take more memory than you think! Are your classes obfuscated?