You Are Here:

Community: Developer Discussion Boards

#1 Old destroyApp not called on 6230i when pressing EndKey - 2006-10-18, 18:53

Join Date: Mar 2006
Posts: 15
gblank
Offline
Registered User
I've been having this problem that on my 6230i when running mudlet and pressing red EndKey, the destroyApp is not called.
I can't seem to find anything regarding that issue.
Please advise.
Thanks.
Reply With Quote

#2 Old Re: destroyApp not called on 6230i when pressing EndKey - 2007-09-20, 05:27

Join Date: Jul 2007
Posts: 1
ericfu_88
Offline
Registered User
I am seeing this on the 6263 as well.
Reply With Quote

#3 Old Re: destroyApp not called on 6230i when pressing EndKey - 2007-09-20, 22:05

Join Date: Apr 2003
Posts: 6,408
Location: USA, CA
hartti's Avatar
hartti
Offline
Nokia Expert
Do you mean the MIDlet does not exit or the MIDlet exits but the destroyApp is not called?

Hartti
Reply With Quote

#4 Old Re: destroyApp not called on 6230i when pressing EndKey - 2008-01-06, 11:18

Join Date: Dec 2007
Posts: 2
paulandrewgreen
Offline
Registered User
Hi all,

Don't know if this helps or is even relevant, but I experienced this issue and fruitlessly searched the discussion boards. I found my own answer and in doing so wanted to share the result so people don't make the same mistake that I did.

In my midlet, the destroyApp method was not being called when I pressed the RED key (hangup key) because my code WAS STILL IN THE "startApp" METHOD!

It kinda makes sense, because if you've not finished initialising there's probably nothing worth clearing up. However, if you open some critical files and (for example) start some form of data transaction, then these won't be cleaned because destroyApp is not called.

All that should probably be done in startApp is create a new instance of your main class (extending Thread of course) and call the run() method. (I am happy to be corrected on this). I suspect startApp was intended to return as fast as possible.

The moral of this tale is, even when creating test harnesses - DONT PUT ALL OF YOUR CODE IN startApp!!!!

I hope this helps, it certainly fixed my problem.

Oh and happy new year to all.

P
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
exe - destructor not being called nubiah General Symbian C++ 4 2007-07-27 11:25
destroyApp() not called with EndKey 7210 Buffalo Mobile Java General 5 2003-12-05 15:54
bug with 3410 and destroyApp not being called alanjeeves Mobile Java General 1 2003-09-30 11:50

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