title: How to avoid "program.exe has stopped working" window in release mode on windows?
body: <p>I'm working on the development of a software in C++ on Visual Studio 2010. As this software should be run on servers where human interaction is not available, I really really need to get rid of this "program.exe has stopped working" window that pops up in the release version in case of errors. I just want the program to terminate (maybe also give an error message, but not necessarily) and not have it remain blocked waiting for someone to click the "Close the program" button. I have to mention that I have 64 bit Windows 7 Professional on my machine.</p>
  
  <p>I have read about several things, such as:</p>
  
  <ul>
  <li><p>the _set_abort_behavior function. This solves the case when abort() is called, but that is not the case for errors like "vector subscript out of range".</p></li>
  <li><p>I know I could be solving some of these errors by doing exception handling, but not all errors are exceptions, therefore this would not solve my entire problem. </p></li>
  <li><p>I've also read something about the Dr. Watson debugger, which is supposed to terminate the application silently, but I have the impression that this debugger is not available for Windows 7. Plus I don't know if this debugger would solve my problem in the release mode...</p></li>
  <li><p>I don't find that disabling Error Reporting on my entire machine is an elegant option, although I read that this could also be an alternative (not really one that I want to take).</p></li>
  </ul>
  
  <p>How can I do this in Visual Studio? Are there any settings I could use? </p>
  
  <p>Is there maybe a way to turn all errors in exceptions in Visual Studio, so that I can solve the problem with the exception handling mechanism? (please be tolerant if this was a stupid question)</p>
  
  <p>I'm looking forward to your proposals. Many thanks for your time!</p>
  
  <p>Best regards,
  Cornelia</p>