BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-28-2004, 03:22 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to detect when your application is about to die?

Please Login to Remove!

Is there an event or exception that your application will get when it is about to die?

Thomas
Offline  
Old 10-29-2004, 10:59 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2004
Posts: 60
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't quite understand what you mean by die. is it because you called exit()? is it because it finished normally (return;)? it is because it crashed?
Offline  
Old 10-29-2004, 11:11 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

What I meant by "die" is when your cod file is removed, all threads from your app wil be removed too.
Offline  
Old 10-29-2004, 11:46 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

It appears the following will do the trick.

http://java.sun.com/j2se/1.4.2/docs/...readDeath.html
Offline  
Old 10-29-2004, 11:48 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Except that BlackBerry does not include this in java.lang package. Doh :(
Offline  
Old 10-29-2004, 02:10 PM   #6 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, after some coding, it appears our application does not even get thrown a Throwable when terminated. I believe while application loader is syncing with handheld, Intellisync is given total control.

There goes the chance to cleanup after yourself :P
Offline  
Closed Thread


Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LH5168-10L - QTY 9 - NEW Static RAM, 8Kx8, 28 Pin, Plastic, DIP SHARP
$18.86
LH5168-10L -  QTY 9 -  NEW Static RAM, 8Kx8, 28 Pin, Plastic, DIP  SHARP pictureBusiness Card Holder Shabby Sheep Cast Iron Lamb Ewe Ram Office Desk #CES15
$13.0
Business Card Holder Shabby Sheep Cast Iron Lamb Ewe Ram Office Desk   #CES15 pictureNEW Pro-Face PS4700 15" Panel PC /Core 2 Duo 2.26 / 500GB/ 4GB RAM/ Win 7 /24V
$698.95
NEW Pro-Face PS4700 15VINTAGE USED ALLIS CHALMERS CA PTO HYDRAULIC FLAT BELT PULLEY PTO GUARD RAMS
$450.0
VINTAGE USED ALLIS CHALMERS CA PTO HYDRAULIC  FLAT BELT PULLEY  PTO GUARD RAMS pictureVINTAGE USED ALLIS CHALMERS CA HITCH AND DRAWBAR ASSEMBLY NO RAMS
$300.0
VINTAGE USED ALLIS CHALMERS CA HITCH AND DRAWBAR ASSEMBLY NO RAMS picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.