This weblog has moved here [http://markallanson.net/wordpress/]. What you see here is an archive.

24

Sep

2004

Mark's COM Interop Golden Rule #1

When capturing a COMException (in my case specifically it was an Automation Error) inside .NET managed code always check the ExcepotionObject.Source parameter as this will contain the error text generated by the COM component that has generated the error.


Don't waste your time checking the Message or Stacktrace parameters as you are just wasting your time (they won't give  you any usefull information).

Posted by Mark at September 24, 2004 05:21 PM
Spoken