Windows Error Reporting dialog

Paul Eremeev
Articles: 35

As with any other native Windows program, there exists a possibility of an unhandled exception being raised during the operation of PVS-Studio analyzer (the PVS-Studio.exe process in particular), this can be because of the call stack overflow for example. The Windows family operating systems starting with Windows Vista would generate a special emergency shutdown dialog in case of an unhandled exception allowing you to debug or close such crashing program.


Figure 1 —Error Reporting Dialog

But the process causing the appearance of such a dialog will not be terminated by the operation system until the user closes this dialog manually. Such a behavior potentially could be undesirable. For instance, while launching the analyzer in automatic batch mode for a large amount of files to be verified from within the makefile-based build system, the appearance of this dialog will result in a complete halt of the entire build system, which in turn will require a user interaction for a resumption of the building process.

To prevent the generation of Windows Error Reporting dialog you should modify the value of HKEY_CURRENT_USER\Software\ Microsoft\Windows\Windows Error Reporting\DontShowUI registry key to 1. However, we discourage this, as such behavior will make it impossible to identify and resolve any potential issues with the analyzer and any other software on your system.

Use PVS-Studio to search for bugs in C, C++, C# and Java

We offer you to check your project code with PVS-Studio. Just one bug found in the project will show you the benefits of the static code analysis methodology better than a dozen of the articles.

goto PVS-Studio;

Paul Eremeev
Articles: 35

Bugs Found

Checked Projects
Collected Errors
14 526
This website uses cookies and other technology to provide you a more personalized experience. By continuing the view of our web-pages you accept the terms of using these files. If you don't want your personal data to be processed, please, leave this site. Learn More →