title: DllRegisterServer error 0xc0000005, (C++ COM Dll). how do I debug my DllRegisterServer function in Visual Studio 2008?
body: <p>I have written a COM dll, and wish to register it using</p>
  
  <pre><code>regsvr32 myComdll.dll
  </code></pre>
  
  <p>I get an error : </p>
  
  <pre><code>DllRegisterServer failed, Return code was: 0xc0000005
  </code></pre>
  
  <p>I want to debug my DllRegsiterServer function, but I do not know how to set up Visual Studio 2008 to run regsvr32 in debug mode...</p>
  
  <p>Thanks</p>
  
  <p>Roey</p>