title: First-chance exception, Microsoft C++ exception: EEFileLoadException at memory location
body: <p>I am working on a C++ DLL that is part of a much larger project, the application is written in C#.</p>
  
  <p>Recently I am getting a Microsoft Visual Studio error displayed.  I am debugging the project with Visual Studio, I've attached to the process.  I have a break point in DllMain, but it crashes before it gets there, a dialog is displayed containing:</p>
  
  <pre><code>    First-change exception at 0x74372ea2 in ........Service.exe:
      Microsoft C++ exception EEFileLoadException at memory location 0x039bc4d4..
  </code></pre>
  
  <p>If I click on the Break button the Call stack is displayed:</p>
  
  <blockquote>
    <blockquote>
      <p>[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]<br>
          KernelBase.dll!74372ea2()<br>
          clr.dll!50bc454d()<br>
          clr.dll!50afc3ee()<br>
          clr.dll!50afc41d()<br>
          clr.dll!50afc440()<br>
          clr.dll!50b415a4()<br>
          clr.dll!50b1a8dc()<br>
          clr.dll!50b1a476()<br>
          clr.dll!50b1e0c4()<br>
          clr.dll!50b161b0()<br>
          clr.dll!50b238aa()<br>
          clr.dll!50b1f739()<br>
          clr.dll!50b1f739()<br>
          clr.dll!50b1c090()<br>
          clr.dll!50b22caf()<br>
          clrjit.dll!68971939()<br>
          clrjit.dll!689922a5()<br>
          clrjit.dll!68989fed()<br>
          clrjit.dll!689749d5()<br>
          clr.dll!50b1fecf()<br>
          clr.dll!50b1ffac()<br>
          clr.dll!50b1fff1()<br>
          clr.dll!50b2024f()<br>
          kernel32.dll!76933a61()<br>
          kernel32.dll!76933a61()<br>
          clr.dll!50adf405()<br>
          clr.dll!50adf35f()<br>
          clr.dll!50b209bf()<br>
          clr.dll!50b21780()<br>
          clr.dll!50adef11()<br>
          mscorlib.ni.dll!78fda29d()<br>
          mscorlib.ni.dll!790214a2()<br>
          mscorlib.ni.dll!790213d6()<br>
          mscorlib.ni.dll!79021391()<br>
          mscorlib.ni.dll!78fda1f8()<br>
          clr.dll!50adea56()<br>
          clr.dll!50af93ef()<br>
          clr.dll!50af9673()<br>
          clr.dll!50c3ecfd()<br>
          clr.dll!50afb213()<br>
          clr.dll!50afb27d()<br>
          clr.dll!50ae1c81()<br>
          clr.dll!50adf405()<br>
          clr.dll!50ae1c81()<br>
          clr.dll!50ae1e80()<br>
          clr.dll!50bd4917()<br>
          kernel32.dll!769395e4()<br>
          ntdll.dll!774d241a()<br>
          ntdll.dll!774d23e9()    </p>
    </blockquote>
  </blockquote>
  
  <p>What can I do to help me trace where the problem is?</p>
  
  <p>[Edit] based on recommendation I did the following:</p>
  
  <pre><code>    Tools / Options / Debugging / Symbols
  </code></pre>
  
  <p>I specified the (.pdb) location which was the same as the DLL location:</p>
  
  <pre><code>    C:\Edwards\Scada\Agent Service\
  </code></pre>
  
  <p>I also checked the path to make sure that it was correct, sadly no difference.</p>
  
  <p>[Edit 2] Bit more information, the C# part of this project is being developed in Visual Studio 2010.  The C++ part is in Visual Studio 2008.  I have no control over this.</p>