It is currently Wed Jun 19, 2013 12:26 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Force Close
PostPosted: Thu Feb 16, 2012 8:04 pm 
Offline
Enthusiast
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
 Profile  
 
 Post subject: Re: Force Close
PostPosted: Thu Feb 16, 2012 8:20 pm 
Offline
Addict
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
 Profile  
 
 Post subject: Re: Force Close
PostPosted: Thu Feb 16, 2012 8:33 pm 
Offline
Enthusiast
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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye