c# - Catching exceptions from Application.Run() -
this question has answer here:
i have standard code in project:
try { myform = new myform(); application.run(myform); } catch (exception e) { // handle uncaught exceptions }
but, when there unhandled exception somewhere in program, still shows "default" exception handler , catch
never hit. want handle fatal errors known fatal errors (connection lost, example).
one possibility appdomain.unhandledexception
. here more details:
also, here older - still excellent - article:
Comments
Post a Comment