Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When an application crashes on Windows Server 2008 SP1, I get this message box:

MyApp has stopped working
Windows is searching for a solution...

How can I prevent this message box from appearing?

Update: What I really need is to make no dialog appear. I have formulated my real intent in another question.

share|improve this question

3 Answers 3

up vote 7 down vote accepted

To completely disable this message box, set the registry value (HKLM or HKCU)\Software\Microsoft\Windows\Windows Error Reporting\DontShowUI to 1.

http://msdn.microsoft.com/en-us/library/bb513638%28VS.85%29.aspx

share|improve this answer

Do you mean how can you stop the application from crashing or how can you stop the message from displaying when it does?

If the former, then without any information about the application we're not going to be able to help. The latter I believe can only be dealt withby gracefully handling the error within the application code AFAIK.

share|improve this answer
    
Of course the latter. –  Lev Jun 23 '09 at 7:08

I think this is controlled by "windows error reporting service", at least, in Vista. It might be called something else in 2008

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.