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.

 
2 Comments

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.

     
  2. PATRICK

    July 21, 2010 at 11:17 PM


    Medicamentspot.com. Canadian Health&Care.Best quality drugs.No prescription online pharmacy.Special Internet Prices. Low price pills. Buy pills online

    Buy:Wellbutrin SR.Female Cialis.Acomplia.Advair.SleepWell.Lipothin.Ventolin.Seroquel.Benicar.Nymphomax.Amoxicillin.Aricept.Prozac.Zocor.Zetia.Female Pink Viagra.Lipitor.Buspar.Lasix.Cozaar….