|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Application.ThreadException does NOT catch all exceptionsFirst the basics: I use VS 2005, .net 2.0, its a C# winforms application which is single threaded. Now my problem: I use the Application.ThreadException and AppDomain.CurrentDomain.UnhandledException ExceptionHandlers to catch all exceptions in my app. My programm consists of some projects. One is a DLL for the BizLogic and one is my WinForms Client. The client uses many methods from the DLL. When the DLL is throwing an exception and the client has no try catch, then the Application.ThreadException is handling the exception (with a userfriendly dialog). This works in 99% of all cases. But now I have an exception, VS stops there (as usual) and tells me the exception is unhandled in user code (it also often say that), but when I press Continue, then my Application.ThreadException Handler is NOT executed. Also the runtime says nothing! So I have an unhandled exception in my program and even .net doesn't care about. Any ideas? Thanks, Rainer. |
|||||||||||||||||||||||