General information
Title:
ErrorHandler puzzler
I am responsible for a legacy app in VFP 9 which uses Doug Hennig's error class libraries. In the main.prg of the app the global error handler is created with oError = CREATEOBJECT('SFErrorMgr', '', .T., 'oError'). I wanted to make a couple of changes in the sferrormgr class which exists in sfmgrs.vcx. If make any type of change, no matter how seemingly inconsequential, this is what happens (after I put something like SET EXTRACT ON elsewhere to trigger the error handler.)
1. I rebuild all
2. I run the .exe, and the error handler works as it should.
3. If I run the .exe a second time, even after a reboot, I get several dialogs.
4. The first is 'Object oError is not found' followed by 'Property lerroroccurred is not found' and so on.
5. The usual ways of clearing out the environment have no effect.
6. The only way I have found to get out of the predicament is to physically copy the original sfmgrs.vcx from my backup drive.
Of course, that puts me back where I began, wanting to make a few code changes. I believe even inserting a comment will mess it up. The app has some error handling code in its framework but I concluded it is not used.
Any insight would be very much appreciated.
Melanie
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