Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handling question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00388620
Message ID:
00398711
Views:
13
That's right - the form isn't releasing because the click event of a command button (the one where I create the error) is still in the program stack. I'll try a few different things to see if I can get rid of the click event - hmmm . . . can a global error handler do this or do I need some code the error event of the form itself?

>Hi Allan,
>If the code in the Error routine simplies issues a return at the end, then that is why it is returning to the line directly after thge error line. You need to issue something like return to master or some other procedure up the program stack to avoid this.
>
>BTW, the reason, I believe, the form is not releasing is because one of its procedures is still in the program stack. Once you get it out of there, it should release fine. Since it isn't releasing, it remains the ActiveForm and attempts to release FormCount times.
>
>HTH.
>
Al Williams

Anola MB, CANADA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform