Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows won't Shutdown
Message
General information
Forum:
Visual FoxPro
Category:
CodeMine
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01033966
Message ID:
01034047
Views:
21
Ivan,

Do you have an OnShutDown event? Usually our main programs have something like:
* All needed settings for example:
set deleted on
set exact off
* and so on, then

on shutdown do exit_to_windows

* then do the main form/menu etc

do form myForm
read events

exit_to_windows()  


function exit_to_windows()

* Clean up code
clear dlls
release all
clear all
close all
quit
When windows shuts-down, the program should end cleanly
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform