How do I suppress the "notify Microsoft" crash dialogs when I call a command from Perl?

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?


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.

A little more info on how to switch off error reporting

Enabling this group policy under Windows Error Reporting (WER) should do the trick (testing right now because I have the same problem):

no popup will be raised in case you execute a program and it chrashes inside your system() call in your perl script. But be aware that the policy will be system wide; no problem though if your system is used for batch jobs.

The 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.

Need Your Help

TabControl's SelectionChanged event issue

c# wpf tabcontrol

I am working on WPF and I am creating a userControl which contains a TabControl which has some TabItems.

Scipy sparse... arrays?

python matrix numpy scipy sparse-matrix

So, I'm doing some Kmeans classification using numpy arrays that are quite sparse-- lots and lots of zeroes. I figured that I'd use scipy's 'sparse' package to reduce the storage overhead, but I'm a