Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to close an EXE gracefully (Ed Rauh's class)
Message
From
18/04/2007 04:35:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to close an EXE gracefully (Ed Rauh's class)
Miscellaneous
Thread ID:
01217197
Message ID:
01217197
Views:
74
My main application starts a second exe that remains running all the time.
When the main application closes, the secondary exe should close automatically. Is there an elegant way to do this?


I have used Ed Rauh class (File #9477) to launch the secondary FoxPro exe. It can be closed with his KillProc(), which runs TerminateProcess. That works, but Ed had a note in his class that says this does not shut down in an orderly fashion; it should only be used for emergencies!

So the question is: how does one close the secondary exe in an orderly fashion?

Cyril
Next
Reply
Map
View

Click here to load this message in the networking platform