Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing open file when application ended using task mana
Message
 
 
To
30/12/2007 10:15:26
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Oracle
Miscellaneous
Thread ID:
01278411
Message ID:
01278468
Views:
17
>>What about the original question, though - how do you detect the application being killed from the Task Manager? Would object's Destroy method still fire?
>
>I guess that would depend on why is it being killed. If it's stuck in a tight loop, or stuck waiting for the OS to return something, I wouldn't expect even bindevent() to the system messages to have any effect. If it's stuck in a wait state (with focus on an off-screen dialog or something, i.e. waiting for user input which cannot happen), then maybe.

I was thinking a bit about the problem. If the destroy of the main application object happens when the application is being killed from the Task Manager, then it's easy to find out when the application has been killed. If not - there needs to be some kind of watcher application, which doesn't sound like a good solution to me.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform