Advertisement

07.01.2008 at 07:06PM PDT, ID: 23532288
[x]
Attachment Details

How can I catch Illegal Operation errors in a third party COM object?

Asked by blowfly in Windows ATL / WTL / COM Programming, Microsoft Visual Basic.Net, .NET Framework 3.x versions

Tags: VB.NET

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
 
Loading Advertisement...
 
[+][-]07.18.2008 at 02:16PM PDT, ID: 22039888

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 04:51PM PDT, ID: 22040722

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows ATL / WTL / COM Programming, Microsoft Visual Basic.Net, .NET Framework 3.x versions
Tags: VB.NET
Sign Up Now!
Solution Provided By: blowfly
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628