I am familiar with the fact that exception thrown in a thread normally couldn't be caught in another thread. How can i transfer the error however to the main thread?

public static void Main()
{
   new Thread (Go).Start();
}

static void Go()
{
  try
  {
    // ...
    throw null;    // The NullReferenceException will get caught below
    // ...
  }
  catch (Exception ex)
  {
    // Typically log the exception, and/or signal another thread
    // that we've come unstuck
    // ...
  }
}
Edit
Report