Uncaught exception java/lang/OutOfMemoryError:Midlet: Maximum byte code leng
I m developing an application in which there is a huge use of Record Management Store ...
till now i was entering many items in RMS..
but now i m getting exception while running midlet like this:-
Uncaught exception java/lang/OutOfMemoryError: Midlet : Maximum byte code length (32kB) exceeded .
Thanks for helping me out
Re: Uncaught exception java/lang/OutOfMemoryError:Midlet: Maximum byte code leng
Check the maximal RMS size that a mobile java supports on your phone. In many cases it's from dosens of kilobytes up to a few megabytes.
Or could it be so that you are storing all the items in the same byte array (and so, in the same record)? That's would easily override the byte array limitations for a VM.
Re: Uncaught exception java/lang/OutOfMemoryError:Midlet: Maximum byte code leng
Well buddy all the phone have some limitaion over rms size, so better if u r saving too much then to things should be considered... if u can reduce the size of data to be saved and other is create new rms if size of first one is exceeding.