You Are Here:

Community: Developer Discussion Boards

#1 Old How to recover from a thread in J2ME - 2003-02-08, 10:16

Join Date: Mar 2003
Posts: 47
shahzad73
Offline
Registered User
Hi it seems to me that my program freezes at some point in a thread... i don't know where it is stuck in the code as its very large and complex.... so what i want is that when it frzzes the program i should some how recover from this thread. i mean start executing it again in Nokia J2ME for 7650.


Shahzad

this is written in the startApp()


frameTimer = new Timer();
frameTimer.schedule(new AnimationTask(), 1,31);


and this is the class. Screen is a canvas and this is what is executing the whole program. some where in the function the thread freezes. and i want to recover and restart this thread..

class AnimationTask extends TimerTask {
public AnimationTask() {
}

public void run()
{
screen.update();
screen.fightUpdate();
screen.repaint();
}

}
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