Discussion Board

Results 1 to 5 of 5
  1. #1
    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 ektasrv's Avatar
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941
    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 Dubb's Avatar
    Join Date
    Jan 2011
    Posts
    11
    You can use Runtime.getRuntime().freeMemory() and Runtime.getRuntime().totalMemory() to help you see what's wrong

  4. #4
    Super Contributor grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    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 Mmusehani's Avatar
    Join Date
    Aug 2009
    Posts
    13
    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
  5. memory error
    By mynokia-7710 in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2005-12-23, 06:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved