How to make WinForm .Net application never crash in case of exception .Net managed exception or in case of native exception?
I just want to log, but not let application crash.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Karthik AgarwalRank #2,270 · 620 reputationPosted Nov 18, 2011, 12:37 AM EST
steven24 reputationPosted Nov 18, 2011, 12:54 AM EST
Karthik AgarwalRank #2,270 · 620 reputationPosted Nov 18, 2011, 1:07 AM EST
http://msdn.microsoft.com/en-us/library/system.appdomain.unhandledexception.aspx
VulpesRank #55 · 29.2K reputationPosted Nov 18, 2011, 1:42 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Nov 18, 2011, 9:47 AM EST
Also look for articles in this web site about exception handling. Also read the MSDN articles about exception handling. If you understand how exception handling works then you will easily understand how to prevent the UnhandledException exceptions.