I have a thread pool and I use a library that if certain conditions are met to throw an exception. My question is if this runs out of the IDE, will the thread come to an halt or will the whole entire program come to a halt?
Share
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.
If the application is .Net 2+, an unhandled exception on a non-main thread will flatten the process.
You can configure this behavior using the app.config
LegacyUnhandledExceptionPolicysetting, but I wouldn’t recommend this as it potentially masks serious bugs.Update
If you wish to ignore the occasional timeout exception, consider placing your WebService call in a try\catch block and ignore the timeout exception: