title: CLR / VectoredExceptionHandler / StackOverflowException / MiniDumpWriteDump
body: <p>Only for StackOverflow-exception, I am struggling to create a MiniDump when configuring AddVectoredExceptionHandler from a process that has the CLR loaded.</p>
  
  <p>My handler gets called, the .dmp file gets created but then MiniDumpWriteDump fails.</p>
  
  <p>I have no problem writing the dump for other exceptions, e.g. AccessViolation. If the CLR is not loaded and a StackOverflow-exceptin occurs, then I also get the dump successfully written.</p>
  
  <p>Sample-code is provided on <a href="https://github.com/NicolaiNyberg/DbgSvcExtension" rel="nofollow noreferrer">https://github.com/NicolaiNyberg/DbgSvcExtension</a> 
  where the CrashHandler dll project configures the handlers and SoexCh.Cs is an example of it being called from C#.</p>
  
  <p>My question is: what happens with respect to unhandled exception handlers once the CLR is loaded that prevents the process from writing a mini-dump in the event of a StackOverflow-exception ?</p>