Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP app stop windows shutdown process
Message
From
24/08/1999 17:40:10
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00257104
Message ID:
00257348
Views:
17
>Hi,
> I have a VFP 5.0a application which is stored in the Windows NT/95/98 system taskbar. When I try to restart windows, the application successfully terminates, but it stops the windows shutdown process. In the application, I have the following command:
>
>ON SHUTDOWN CLEAR EVENTS
>
>which falls through and runs a cleanup routine which has CLEAR ALL and CLOSE ALL.
>
>Does anyone know why this is happening?
>
>Thanks.

Not completely sure here, but try a little variation on this:

ON SHUTDOWN DO Prg_Quit

then put your CLEAR EVENTS and CLEAR ALL and CLOSE ALL into PROCEDURE Prg_Quit (or whatever you call it). That's what we do, and it works like a charm. Kind of like an "ON ERROR DO xxx" would be...

HTH

Rob
Previous
Reply
Map
View

Click here to load this message in the networking platform