We have a big application, and to ensure that our customers don't have the message "XXX has stopped working", we added some handler(in which we logs some errors and some other stuff).
It is working fine, we already solved a lot of issues like this(by analysis the logs after the exception arrived). But recently, someone managed to get the "XXX has stopped working" message anyway.
Currently we have the following implementation:
Application.ThreadException += HandleUnhandleException;
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
AppDomain.CurrentDomain.UnhandledException += HandleUnhandleException;
Which is done at the very beginning of our application.
My question: Do you see any case where I can have an exception that display the mentionned popup("XXX has stopped working") without coming in this handler?