How to handle error on other thread?

Posted by markattwood on Stack Overflow See other posts from Stack Overflow or by markattwood
Published on 2010-05-27T06:21:32Z Indexed on 2010/05/27 6:31 UTC
Read the original article Hit count: 154

Hi,

I'm trying to handle errors that have occurred on other threads the .NET CF program is like below:

static void Main()
{
    Thread t = new Thread(Start);
    t.Start();
    ...
}

void Start()
{
     ... Exception here

}

In my situation, putting try catch in the Start method is impossible. How can I handle it in the global code?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about multithreading