×

Discussion Board

Results 1 to 7 of 7

Thread: Memory Full

  1. #1
    Regular Contributor
    Join Date
    Dec 2006
    Posts
    84

    Memory Full

    I get "Memory Full" message when I run J2ME/MIDP application on Nokia 6681

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Memory Full

    Do you run other aplications at the same time? Is your application creating a lot of objects? Is there a lot of recursion in your MIDlet? Do you read jpeg pictures in to the memory (even if the file size is small, the jpeg image takes much more memory as an image)?

    Please be more specific when asking a question, so that others can help.

    Hartti

  3. #3
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: Memory Full

    Quote Originally Posted by niraj_gandhi
    I get "Memory Full" message when I run J2ME/MIDP application on Nokia 6681

    if you are creating lots of objects, if you are creating objects in a loop and not deleting it properly before the loop ends you will definitly get memory full error. check your code for this cases...

    Peter

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    46

    Re: Memory Full

    Hey,

    I just want to ask that what did you mean to say "delete".
    Are you trying to say that make "object = null"
    I am doing same thing but some where I get memory full and some where when I make null it runs successfully. I am not getting that what is going exactly at heap level.
    Regards,

    Vishal

  5. #5
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: Memory Full

    HI,

    Yes I am trying to say that make "object = null" , Find the amount of free memory in each execution of loop or at parts where you feel as memory is consuming in large amount .then you can find how the memory full occurs. And can make solutions for that.

    Hope you understand me properly,

    Peter

  6. #6
    Registered User
    Join Date
    Aug 2005
    Posts
    44

    Re: Memory Full

    I think you should run the application on the emulator first with memory profiler opened.
    The problem you say comes at times when you are trying to load large resources into the heap like loading an image or opening a player with a large file as input. The native OS is not able to increase the VM heap size at a pace as compared to filling up of heap.
    This is what causing you to receive the memory full error erratically.

    Hope this helps....

    nimish

  7. #7
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Memory Full

    In case you have missed, please do check for some memory leaks. Use garbage collector where ever necessory. [System.gc()]

    Also give a try with optimising your code.
    Efficient MIDP Programming v1.1
    http://www.forum.nokia.com/info/sw.n..._1_en.pdf.html

    How can I reduce the memory footprint of my J2ME application
    http://www.java-tips.org/java-me-tip...-applic-3.html

    Avoiding Memory Fragmentation
    http://developer.sonyericsson.com/si...ryfragment.jsp
    Links courtesy : Juarez.

    May be of some interest to you.

    Regards
    Gopal

    __________________
    MobiQuil.com
    An initiative by Developers for Developers.
    http://www.mobiquil.com - Alpha - Launched.

Similar Threads

  1. N70 'Memory Full' error using J2ME, Bluetooth and TCP
    By scoobyboy in forum Mobile Java General
    Replies: 3
    Last Post: 2006-12-06, 22:21
  2. Nokia N80 Memory Card gets full - without beeing so?!
    By thunder7553 in forum General Development Questions
    Replies: 0
    Last Post: 2006-07-06, 09:25
  3. series 60 memory full
    By rawpsycho in forum Mobile Java General
    Replies: 5
    Last Post: 2004-12-06, 15:11
  4. 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
  •  
×