4

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.

Lev
  • 205
  • 3
  • 6

3 Answers3

7

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

grep
  • 186
  • 1
  • 3
0

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.

Joel Mansford
  • 985
  • 1
  • 5
  • 13
0

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

MathewC
  • 6,957
  • 9
  • 39
  • 53