N
ng5000
Hi,
I have a C# application. The application starts a thread. I have a
method that is run in the context of the thread. Sometimes (depends
how it's called etc.) the method catches, logs, and then throws an
exception.
The exception is then caught by the framework rather than my
application. I know this is bad design, and I intend to change the
application so that threads do not throw an exception from their last
catch statement. Is there, however, someway I can catch uncaught
thread exceptions?
I hope I was clear enough in my explanation but if not please ask.
Thanks,
Nick
I have a C# application. The application starts a thread. I have a
method that is run in the context of the thread. Sometimes (depends
how it's called etc.) the method catches, logs, and then throws an
exception.
The exception is then caught by the framework rather than my
application. I know this is bad design, and I intend to change the
application so that threads do not throw an exception from their last
catch statement. Is there, however, someway I can catch uncaught
thread exceptions?
I hope I was clear enough in my explanation but if not please ask.
Thanks,
Nick