You Are Here:

Community: Developer Discussion Boards

#1 Old 7650 keeps losing MIDlets. Nokia wake up! - 2002-11-07, 16:04

Join Date: Mar 2003
Posts: 7
janne123123
Offline
Registered User
I'v lost 7-8 midlets in my phone now. They are nowhere to be seen, when i look at app-list, but the memory is lost when i check ( tykalut --> Hallinta --> Muisti , in finnish )

When is this firmware bug going to be fixed? If this occurs because of some programming mistake when closing midlets, i would sure like to know what im doing wrong!

Here's the relevant code:

//User initiated method
public void exit()
{
destroyApp( false );
notifyDestroyed();
}

public void destroyApp( boolean unconditional )
{
display.setCurrent(null);
if( cw != null )
{
//PersistentStorage closed
cw.closeRecords();
}

if( cwCanvas != null )
{
//Stops innerclass timer
cwCanvas.stop();
}
}
Reply With Quote

#2 Old RE: 7650 keeps losing MIDlets. Nokia wake up! - 2002-11-08, 07:08

Join Date: Mar 2003
Posts: 419
Location: Irving, Texas, USA
pbergius
Offline
Regular Contributor
Hello Janne,

Looking at your code snippet the only question that comes into mind is that why do you use display.setCurrent(null)? That call is not for cleaning up, but for putting the midlet into background. Have you checked if your midlet is in background (press and hold Programs button.) Below is an excerpt from Display ref page:

" The application may pass null as the argument to setCurrent(). This does not have the effect of setting the current Displayable to null; instead, the current Displayable remains unchanged. However, the application management software may interpret this call as a hint from the application that it is requesting to be placed into the background. "

Regards,

Petteri / Forum Nokia
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

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