Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON SHUTDOWN
Message
From
26/04/2001 11:30:02
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
26/04/2001 11:09:51
Steve Jones
Business Systems Services Uk Ltd
Swansea, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00500134
Message ID:
00500143
Views:
24
Hi Steve,
What holds your application. IOW, do you issue a READ EVENTS or are you in a eternal loop? If you issue a READ EVENTS, you only need a CLEAR EVENTS, and the application will fall through. (Just a side point.) I assume no READ EVENTS because then your ON SHUTDOWN should work just fine with a QUIT or CLEAR EVENTS. (Althought QUIT is superflous.) If you have a loop, perhaps a DOEVENTS is needed to look at the Windows events.

>We are designing an application that will run in background with no user input. It is executed in Windows NT startup directory, and we need to get it to automatically close when windows is shut down. We are trying to use the ON SHUTDOWN command to call a prg which contains the quit command but this just hangs the PC when shutdown is run.
>
>Any help appreciated.
>
>Steve
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform