title: The thread 'Win32 Thread' has exited with code -1073740777 (0xc0000417)
body: <p>I have an executable which calls a DLL. I can step through DLL code by attaching VS2008 project of DLL to process of executable. I debugged some errors/exceptions already. But now, exactly when main function of DLL returns, executable process crashes without any error/exception. To debug the crash, I tried to use crash-dump file, but based on <a href="https://stackoverflow.com/a/4699467/3405291">this link</a>, looks like they don't work with VS2008. </p>
  
  <p>What possible tools can I use to debug the crash?</p>
  
  <h2>EDIT:</h2>
  
  <p>process calls this when dying: </p>
  
  <pre><code>TerminateProcess(GetCurrentProcess(), STATUS_INVALID_CRUNTIME_PARAMETER);
  </code></pre>