title: .NET C# Thread exception handling
body: <p>I thought I understood this, and am a bit embarrassed to be asking, but, can someone explain to me why the breakpoint in the exception handler of following code is not hit?</p>
  
  <pre><code>static class Program
  {
      /// &lt;summary&gt;
      /// The main entry point for the application.
      /// &lt;/summary&gt;
      static void Main()
      {
          Thread testThread = new Thread(new ParameterizedThreadStart(TestDownloadThread));
          testThread.IsBackground = true;
          testThread.Start();
      }
  
      static void TestDownloadThread(object parameters)
      {
          WebClient webClient = new WebClient();
  
          try
          {
              webClient.DownloadFile("foo", "bar");
          }
          catch (Exception e)
          {
              System.Console.WriteLine("Error downloading: " + e.Message);
          }
      }
  </code></pre>