You Are Here:

Community: Developer Discussion Boards

#1 Old OOM excecption occurs when quit - 2008-10-06, 04:56

Join Date: Dec 2005
Posts: 26
02060515
Offline
Registered User
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.
Reply With Quote

#2 Old Re: OOM excecption occurs when quit - 2008-10-06, 06:31

Join Date: Sep 2008
Posts: 200
Location: Ahmedabad
Send a message via Yahoo to sunil_bhambani123
sunil_bhambani123's Avatar
sunil_bhambani123
Offline
Regular Contributor
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
Reply With Quote

#3 Old Thumbs up Re: OOM excecption occurs when quit - 2008-10-06, 08:21

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
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

R a j - The K e r n e l
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
OOM Testing Need help!!! hoy_cpe General Symbian C++ 3 2008-03-17 18:24
Eikon 7 error occurs when exit JackSu Symbian User Interface 0 2007-10-08 09:38
Browser on N76 asks "show cancelled downloads?" every time I quit cronn General Browsing 2 2007-09-18 20:24
How do I quit? Poldie Mobile Java General 17 2006-05-30 23:36
SMTP on 3650: QUIT immediately after EHLO without sending e-mail woudt Smart Messaging 1 2004-01-22 12:32

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia