I am calling a command-line program from my Perl script. When these programs crash, I am prompted with a messagebox asking me if I want to notify Microsoft. Since this is an automated system it would be desirable if I could suppress that message and continue with other things in my script. Is this possible?
views:
160answers:
3The problem doesn't sound like its a Perl problem, it sounds like an issue with the system commands. Which do you mean by "when these programs crash". Your system programs?
It depends on what is causing the crash. This is the "Dr. Watson" error / WinQUAL feature and it really should not happen for pure Perl code, if it does, it means the Perl interpreter is crashing and you have a Perl bug or are using a native extension that is crashing, make sure you have the latest stable build of either Perl or any native extensions. Narrow it down to what is crashing.
You can also turn off the Windows Error Reporting feature altogether, from the Windows control panel.
You probably could use the WerAddExcludedApplication
function to stop WER from kicking in when the program crashes. You should revert hat exclusion afterwards again with WerRemoveExcludedApplication
.