General information
Category:
Coding, syntax & commands
Title:
Error Handling in VFP 5.0a
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only