×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    111

    Out of memory error

    Hi,
    When I am trying to run an application in WTK2.5.1 the following is shown:


    Running with storage root C:\Documents and Settings\Administrator\j2mewtk\2.5.2\appdb\DefaultColorPhone
    Running with locale: English_United States.1252
    Running in the identified_third_party security domain
    Uncaught exception java/lang/OutOfMemoryError.
    Execution completed.
    5024421 bytecodes executed
    740 thread switches
    1668 classes in the system (including system classes)
    64598 dynamic objects allocated (2563812 bytes)
    6 garbage collections (2494108 bytes collected)


    How will the out of memory error be overcome?

  2. #2
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Out of memory error

    Quote Originally Posted by lovely_chatterjee View Post
    Hi,
    When I am trying to run an application in WTK2.5.1 the following is shown:


    Running with storage root C:\Documents and Settings\Administrator\j2mewtk\2.5.2\appdb\DefaultColorPhone
    Running with locale: English_United States.1252
    Running in the identified_third_party security domain
    Uncaught exception java/lang/OutOfMemoryError.
    Execution completed.
    5024421 bytecodes executed
    740 thread switches
    1668 classes in the system (including system classes)
    64598 dynamic objects allocated (2563812 bytes)
    6 garbage collections (2494108 bytes collected)


    How will the out of memory error be overcome?
    See memory is always limited on the mobile devices and you application is doing something where it is requireing just too much of memory - try to reduce the runtime memory needs of your application.
    Thanks,
    Ekta

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    11

    Re: Out of memory error

    You can use Runtime.getRuntime().freeMemory() and Runtime.getRuntime().totalMemory() to help you see what's wrong

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Out of memory error

    Do you have large images in your application? (Large in terms of pixels, not the size of the file.)

    Graham.

  5. #5
    Nokia Developer Champion
    Join Date
    Aug 2009
    Posts
    18

    Re: Out of memory error

    Also check for infinite loops

Similar Threads

  1. Out of Memory Error
    By gopicsq in forum Mobile Java Networking & Messaging & Security
    Replies: 12
    Last Post: 2010-07-05, 08:28
  2. Out-of-Memory Error
    By golzari_ali in forum Mobile Java General
    Replies: 10
    Last Post: 2010-02-01, 09:39
  3. Nokia 6131i develop application Error: Out Of Memory Error
    By flycatrat in forum Near Field Communication
    Replies: 0
    Last Post: 2007-08-28, 11:10
  4. Out of Memory Error (Symbian OS error code : -4) with Player & Manager class
    By CLsystems in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-04-11, 19:45

Posting Permissions

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