I have a program that have 2 threads running at the same time. Every method is surrounded with a try and catch. If one of the threads creates an exception will it stop the other thread from working as well?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. It will only stop the current thread. The other thread will continue working.
Exceptions are being stored in the stack of each thread.
You can pass exception information between threads using asynchronous delegates:
Catching an exception thrown in an asynchronous callback