×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    14

    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
    JAY

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    307

    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.
    Last edited by axs; 2007-09-18 at 12:27.

  3. #3
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    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.

Similar Threads

  1. Replies: 3
    Last Post: 2011-03-25, 20:22
  2. VS.Net 2003 Carbide 2.01 and epoc32.exe
    By ValentinK in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2007-01-12, 12:31
  3. why throws this exception:ALERT: Maximum byte code length (32kB) exceeded
    By dennisdeng in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2006-09-20, 13:51
  4. No exception but code aborts
    By dav_coleman in forum Mobile Java General
    Replies: 2
    Last Post: 2004-09-25, 19:56
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×