title: Visual Studio Debuging Errors in C++
body: <p>For some reason the integrated debugger is <strong>causing</strong> an error as soon as I make reference to a third party vendor's dll class. This same code runs when it is built and ran as a release, stand alone. The two properties for debug and release should be the same as I have not really altered them. I added the lib file to the path for both builds. I simply have:</p>
  
  <pre><code>ClassNameFromDll blah;
  </code></pre>
  
  <p>When it gets to here, I get this exception:</p>
  
  <p>Unhandled exception at 0x78a3f623 (mfc90ud.dll) in MTGO SO Bot.exe:
  0xC0000005: Access violation reading location 0xf78e4568.</p>
  
  <p>It occurs in: afxtls.cpp, line 252. </p>
  
  <p>This is an MFC app, but I am not really using any MFC other than a very simple gui which fires off an event that is all win32. I am using Visual Studio 2008 Express.</p>