View unanswered posts | View active topics
|
Page 1 of 1
|
[ 3 posts ] |
|
| Author |
Message |
|
spacebuddy
|
Post subject: Force Close Posted: Thu Feb 16, 2012 8:04 pm |
|
 |
| Enthusiast |
 |
Joined: Thu Jul 02, 2009 5:42 am Posts: 173
|
|
Anyone know how to detect if your application has been closed when someone uses "Activity Monitor" to kill the application.
Thanks
|
|
| Top |
|
 |
|
Tenaja
|
Post subject: Re: Force Close Posted: Thu Feb 16, 2012 8:20 pm |
|
 |
| Addict |
 |
Joined: Tue Nov 09, 2010 10:15 pm Posts: 808
|
|
A quick test showed this...
Case #PB_Event_CloseWindow MessageRequester("Closing...", "this window: " + Str( GetActiveWindow()))
...to give you the message box if you close it using the control. In windows, however, the program was just halted, and none of the exit commands were executed. I guess that means you can "easily" detect if it is NOT forced closed.
|
|
| Top |
|
 |
|
spacebuddy
|
Post subject: Re: Force Close Posted: Thu Feb 16, 2012 8:33 pm |
|
 |
| Enthusiast |
 |
Joined: Thu Jul 02, 2009 5:42 am Posts: 173
|
|
Yes, if you use the control then it closes, but I am using Activity Monitor to force close the app which does not work on my system (OS/X Lion).
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|