Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ErrorHandler puzzler
Message
From
11/09/2008 17:09:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Stonefield
Title:
ErrorHandler puzzler
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01346881
Message ID:
01346881
Views:
60
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
Map
View

Click here to load this message in the networking platform