Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Handling in VFP 5.0a
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Error Handling in VFP 5.0a
Miscellaneous
Thread ID:
00080468
Message ID:
00080468
Views:
71
I want my error routine to simply close the active form, close all tables, revert all tables etc. This works fine except it will not release the active object if the error happened there. This denies me the ability to shut down the form and keep the .exe file running.

My intention was to call the error routine, close all forms, save the initialization global variables to a .mem file, clear the memory, restore the .mem file, delete the file and reinitialize the environment.

I tried putting a timer on the form and keeping it disabled. When the error handler is called, it activates the timer (which has code to shut down the form) then returns back to the form. The timer was to shut down the form. I tried for 3 hours to get this to work but to no avail. The error handler allways returns to the object that had focus when the error occurred. The timer never went off and all objects except the error one were removed from the form. (I placed code in the error routine NOT to release the timer).

Does anyone know how to shut down a form and still keep the .exe running?

Thanks in advance...
Robert
Next
Reply
Map
View

Click here to load this message in the networking platform