What is your opinion on exception handling when executing a thread?
You should handle exceptions whenever possible, and whenever you expect exceptions. Clarification: I completely agree with John that you should not handle exceptions everywhere - only where you can do something with them. However, you should never allow an exception to go through without processing in the thread, as this can cause serious problems. Have a root exception handler and let your thread do it gracefully (after registering the problem, etc.)
In particular, what if a thread is thrown inside a catch block of a try-catch clause?
You mean: What if an exception is thrown in a catch block? Well, then it is not processed by the current try-catch block. It’s better not to put too much processing in the catch block to avoid this situation as much as possible.
And what happens to the stream if the stream is not processed?
: , ? .
:
UnhandledException AppDomain. :
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;