ThreadExceptionEventHandler being suppressed by VS

I have a bizarre problem.

In my main form entry-point (i.e. static void Main), I register a ThreadExceptionEventHandler which should catch unhandled exceptions and do some appropriate processing.

For some strange reason, this works fine on another developer's machine, but is suppressed on my machine. I've unchecked the option to use the VS Debug Assistant, unchecked various JIT options...still, when I run the project without debugging, I just get a bland dialog saying 'Client has encountered a problem and needs to close' [Debug] [Close] buttons. When I run it inside VS2005 I hit the point where I've purposely caused a DivideByZero exception.

Tearing my hair a bit on this one, as it seems nonsensical that the custom error handling should work on the other dev's machine and not mine. We are using source control and the code is in sync so I conclude that it's a machine / VS setting.


Answer this question

ThreadExceptionEventHandler being suppressed by VS

  • Ben Fulton

    Is this perhaps a known issue Or should I post to a different forum

  • ThreadExceptionEventHandler being suppressed by VS