Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Managing error event within critical section???
Message
From
24/01/2007 08:54:14
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01188583
Message ID:
01188602
Views:
17
Mark you should use COMRETURNERROR see the help for more information. also u should set SYS(2335, 0) in the init event of your VFP COM object to prevent situations like that to happen.

>I have this VFP COM MTDLL that has a short critical section in it. The MTDLL is used by an ASP app. I have run into a problem. Currently, when the error event for the COM object fires while in the CS, the expected things do happen and the appropriate reporting happens on the web page, and then the object returns control to ASP, but the critical section is not exited (control in the VFP code does not return to the point where the error occurred and continue through the remainder of the CS). The next time any browser session instantiates the same COM object and comes to the CS, it hangs because the a previous CS was never exited.
>
>Is there a preferred way to deal with cleanly exiting a CS even when an error event fires? Or possibly deal with error handling completely within the CS itself?
>
>Thanks very much.
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform