c# - Catching exceptions from Application.Run() -


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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -