×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    26

    OOM excecption occurs when quit

    Hi All:
    I write a j2me application which can run on the Nokia 8600luna.But the problem is when i quit the application,"OOM" exception occurs almost very time.The OOM Exception is:
    "Out Of Memory Error
    java/lang/OutOfMemoryError"

    Can any anybody give me some advice on how to solve this problem?
    Thank you very much.

  2. #2
    Regular Contributor
    Join Date
    Sep 2008
    Location
    Ahmedabad
    Posts
    254

    Re: OOM excecption occurs when quit

    Quote Originally Posted by 02060515 View Post
    Hi All:
    I write a j2me application which can run on the Nokia 8600luna.But the problem is when i quit the application,"OOM" exception occurs almost very time.The OOM Exception is:
    "Out Of Memory Error
    java/lang/OutOfMemoryError"

    Can any anybody give me some advice on how to solve this problem?
    Thank you very much.

    If you check device specifications of 8600 then its mentioned that it has 2MB of heap size. So your application might be creating objects but not getting garbage collected at proper time.

    One wierd solution to it may be to try to format the cell and then reinstall the application again, see what happens then.

    Sunil
    Software Developer - J2ME

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: OOM excecption occurs when quit

    Hi,
    As sunil_bhambani123 described already,your application can not exceed the heap size.And he has also put the point that the objects you are creating , not getting garbage collected.So you can fix the problem by following these points....

    1.Just open the application with memory monitor
    2.try to find out that which type of objects you are exceeding..there is a tab you can click and you can see this..
    3.Now you think that where you are using these objects in code..
    4.check whether any declaration,initialization,Image creation has not been done in loop..
    5.Once you have done the work of any object/image , and you dont need that ,then go and put the same as null.


    Hope you can do it...
    If any issues comes then let us know...

    Thanxs
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. OOM Testing Need help!!!
    By hoy_cpe in forum Symbian
    Replies: 3
    Last Post: 2008-03-17, 17:24
  2. Eikon 7 error occurs when exit
    By JackSu in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-10-08, 08:38
  3. How do I quit?
    By Poldie in forum Mobile Java General
    Replies: 17
    Last Post: 2006-05-30, 22:36
  4. Replies: 1
    Last Post: 2004-01-22, 11:32

Posting Permissions

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