RSS
 

Debugging COM with native and managed code

18 Mar

I was debugging a piece of managed code that communicates with a COM object (an old native piece). I was using Visual Studio 2008.

Things moving along nicely until an exception showed up when initializing the COM object – System.AccessViolationException.

It took me quite a while to find out that the exception was solely a result of a mis-configuration. I should not have checked “Enable RPC debugging” for native debugging. Cleared the checkbox, it worked like a charm.

 
1 Comment

Posted in Coding

 

Tags:

Leave a Reply

You must be logged in to post a comment.

  1. SeanS

    March 18, 2010 at 9:09 PM

    This is exactly what I was looking for. Spent days on it. THX.