Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON SHUTDOWN causes strange error...
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00020073
Message ID:
00020175
Views:
40
>You need to clear your READ EVENTS before you try to shutdown VFP. It is much better to clear your environment before trying to exit VFP.

Well, my ON SHUTDOWN procedure has CLEAR EVENTS as the first line in the procedure, but it never even actually gets to my procedure. The only thing I can think of is that you can't trigger ON SHUTDOWN if you're still processing events. And since you don't know when someone might try to click on the "X" button, you can't CLEAR EVENTS before they click it. Is there a QueryUnload event for the main Visual FoxPro window? If so, I can just take care of my business there. If not, I'll just have to disable the little "X" button in the title bar (or not have an ON SHUTDOWN). :(

Thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform