title: Identify crash of executable run by C# Process.Start()
body: <p>My code:</p>
  
  <pre><code>ProcessInfo processInfo = ...
  Process proc = Process.Start(processInfo);
  proc.WaitForExit();
  if (proc.ExitCode != 0)
  {
     // ...
  }
  </code></pre>
  
  <p>My problem is that the process (a <code>C++</code> executable) is sometime crashing due to unhandled exceptions, in unknown circumstances.</p>
  
  <p>I can tell that the executable crashed, since on crash it returns a negative exit code (or non zero for that matter). However, I cannot create a process dump to investigate.</p>
  
  <p>If I at least had Windows' "Program stopped working" message popped, then I could create the dump manually.</p>
  
  <p>Of course I can use software like <code>Debug Diag</code> to monitor executables and take dump on crash, but would rather have a more generic in-house solution.</p>