Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exit Windows
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00138616
Message ID:
00138831
Views:
15
>>Actually, there is if you VFP app doesn't respond to the shutdown message generated by ExitWindows(), after a time, Windows will call TerminateProcess(), which is a particularly messy shutdown.
>
>But it appears that your app doesn't need to do so in order to close tables? Just because your app doesn't respond to WM_SHUTDOWN doesn't mean the VFP runtime doesn't.

Decide what you like - if VFP is in a tight processor loop, doing no screen I/O, the VFP (runtime or interpreter) code that responds to Windows Messages may not receive the message. This is evidenced often by a message box coming up telling you the task is not responding, asking if you want to End Task immediately or Continue to Wait. Selecting End Task issues an immediate TerminateProcess(), and that doesn't talk to the event loop at all - it simply starts releasing resources and cancelling the TCB for the running process, killing it and all its threads and fibers, giving no chance to let them execute their shutdown code, or in the case of OLE Servers, the actions in OnFinalRelease, which causes some memory leaks that can't be recovered without a shutdown/restart.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform