Exception in thread

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
 
A

Arne Vajhøj

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
 
A

Adam Clauss

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top