Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8357177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:24:04+00:00 2026-06-09T10:24:04+00:00

I am new to multithreaded application. I have few doubts before starting working on

  • 0

I am new to multithreaded application. I have few doubts before starting working on it.
Can anyone clear these doubts?

  1. How to handle exceptions in multithreaded application?
  2. If there is any exceptions in any 1 thread, will the whole application will come
    down? or all other threads will continue?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:24:05+00:00Added an answer on June 9, 2026 at 10:24 am

    How to handle exceptions in multithreaded application?

    The best way is inside the thread, but sometimes eg. (thread pool) this is hard. To handle unhandled exceptions depends on the type of application:

    • WPF: Use Application.DispatcherUnhandledException
    • Console or Service: Use AppDomain.UnhandledException

    ASP.NET, WinForms, … have their own mechanisms.

    But consider: especially while developing to allow the default handling and falling into the debugger (adding if (Debugger.IsAttached) { Debugger.Break(); } can be very helpful to define a permanant breakpoint

    If there is any exceptions in any 1 thread, will the whole application will come down?

    It depends. In ASP.NET: No (if debugging is enabled you’ll see a Yellow Screen of Death, otherwise a 500 server error result); in other hosts: depends (but generally the answer is Yes the process will terminate).

    Some of the details of this have changed between .NET versions – typically getting stricter, so you need to do your research. Finally: in .NET 4 certainly, possibly before as well, certain exceptions (eg. StackOverflowException) cannot be caught because there is no reliable way to have consistent process state if they are thrown.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have working on multithreaded application I am passing IMAGETHREADINFO structure in thread here
I'm new to multithreaded programming, and have a question. How do I get each
We have an application in production that is supposed to be a multithreaded socket
My java application has to send messages(multithreaded) to a socket server. The application can
I have a multithreaded C++ application which holds a complex data structure in memory
I have C# multithreaded application that has to interface with a hardware using SerialPort.
I have the following problem: Multithreaded WPF application, Model View Presenter Implementation. Presenters and
I have this code will work in multithreaded application. I know that immutable object
I have a multi threaded client server application which uses Sockets. When a new
I have created a multithreaded application but it still hangs if the server is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.