BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-28-2004, 03:22 PM   #1
tliou
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
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
berryapps
Thumbs Must Hurt
 
Join Date: Oct 2004
Posts: 60
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
tliou
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
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
tliou
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
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
tliou
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
Default

Except that BlackBerry does not include this in java.lang package. Doh :(
Offline  
Old 10-29-2004, 02:10 PM   #6
tliou
Knows Where the Search Button Is
 
Join Date: Oct 2004
Location: Dallas
Posts: 23
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


*PARTS/REPAIR* Mitsubishi FR-A520-5.5K-NA A500vInverter In: 35.5A 3Ph Out: 10Hp picture

*PARTS/REPAIR* Mitsubishi FR-A520-5.5K-NA A500vInverter In: 35.5A 3Ph Out: 10Hp

$750.00



MITSUBISHI FR-A820 1.5K TFA INVERTER A500 240 V #L-220 picture

MITSUBISHI FR-A820 1.5K TFA INVERTER A500 240 V #L-220

$684.00



1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ picture

1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ

$317.00



1Pcs USED A500 7.5KW 380V FR-A540-7.5K-CH frequency converter picture

1Pcs USED A500 7.5KW 380V FR-A540-7.5K-CH frequency converter

$401.02



1pc   used      A500 inverter FR-A540-3.7K 3.7KW380V picture

1pc used A500 inverter FR-A540-3.7K 3.7KW380V

$258.74



1PCS USED A500 7.5KW 380V FR-A540-7.5K-CH picture

1PCS USED A500 7.5KW 380V FR-A540-7.5K-CH

$347.76







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