Exception in thread

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hi!

What happens if there occur exception in thread. I assume that this doesn't
affect the main thread in any way.
You must catch and handle those exception in the thread where they happen.

//Tony
 
What happens if there occur exception in thread. I assume that this doesn't
affect the main thread in any way.
You must catch and handle those exception in the thread where they happen.

Yes.

Which you could easily verify by a few lines of code.

Arne
 
Yes.

Which you could easily verify by a few lines of code.

Arne
Actually - it absolutely CAN affect in the main thread. In .NET 2.0 and
newer, an unhandled exception in any thread will take down the entire
application. I would call that "affecting the main thread in any way" :)

-Adam
 
Back
Top