By default in Windows Vista, 7 and upwards, when an application crashes, Windows pops up the common Application Debug Close popup window an example of which is shown below:
Sometimes this can be a problem specially if you are running automated tests and you do not want to have to manually press any keys or if you just want your application to crash without this popup window.
The best way to do that is to use Gepedit.msc.
- Go to Start. Type gpedit.msc
- Navigate to Computer Configuration->Administrative Templates->Windows Components->Windows Error Reporting
- On the right pane, click on “Prevent display of the user interface for critical errors” and set it to Enabled.
This will disable the popup from showing up.
This post was easy to understand and helpful for me.
Thank you for your post. In fact, I wanted the opposite: to show the debug close window when the application crashes. I am a developer for server code and once a while there is a crash, however I want to see the internal message log, typically displaying the assertion failure with the .cpp and line of code where the problem was detected before the application crashed. When Windows close the application immediately, it is very difficult to find the bug. Thanks again.
@Daniel. Glad it was of help.