I want to run some code in VB.NET, which calls a third party COM object. Unfortunately, I don't entirely trust the COM object, and on our production server we want to handle it crashing to allow the rest of the program to continue.
Unfortunately, during simulated crashes, the Try/Catch/End Try routine doesn't catch Illegal Operation errors in 3rd party COM objects - it simply shuts the program down. However catching and handling these errors is essential to the reliability of our system.
Is there anything in the Threading, or Interop libraries which allows you to control, handle, whatever any IO errors in these COM objects? I vaguely remember a colleague about 7 years ago developing some IO error handling routine in C++, so I'm pretty sure it's possible.
Thanks for your time,
-blowfly
Start Free Trial