General information
Title:
Managing error event within critical section???
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.
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