c# - When can an exception in a .NET WinForms app just get eaten without being caught or bubbling up to a windows exception? -
In many places of our code, we see that if running under the debugger, it will show that the code has an unrestricted Exception is, however, if it is to walk out of the debugger, it will completely ignore the exception as if it was caught. We have an exception handler that pops up an error that is linked to the app. Thread Exceptions and Appdomain Custom Demon. Unrestricted exceptions and none of them can catch them. We also log our exceptions and do not see anything in the log.
What are some of its possible reasons?
EDIT: It seems that it is not dependent on the type of exception, but it has been thrown away. It was just tested by adding:
throw a new exception ("test exception");
It will appear under the debugger but will not be seen out, so in our case this is not a thread unchanged exception or anything dependent on it is a specific type of exception.
There are some special exceptions that do not raise or get caught, it seems that you Of them are working: View
Comments
Post a Comment