title: SerialPort does not read message
body: <p>I'm trying to run a serial communication using the [SerialPort] class. I made a simple console application project where I test this class using <a href="http://en.wikipedia.org/wiki/HyperTerminal" rel="nofollow">HyperTerminal</a>.</p>
  
  <p>This is my program:</p>
  
  <pre><code>class Program
  {
      private static bool _continue = true;
      private static SerialPort port;
  
      static void Main(string[] args)
      {
          try
          {
              port = new SerialPort("COM4", 9600, Parity.None, 8, StopBits.One);
              port.ReadTimeout = port.WriteTimeout = 5000;
              port.Open();
  
              Thread thread = new Thread(Read);
              thread.Start();
  
              while (_continue)
              {
                  string message = Console.ReadLine();
  
                  if (message.Equals("quit"))
                      _continue = false;
                  else
                      port.Write(message);
              }
  
              thread.Join();
              port.Close();
          }
          catch (Exception ex)
          { }
      }
  
      private static void Read()
      {
          while (_continue)
          {
              try
              {
                  string message = port.ReadLine();
                  Console.WriteLine(message);
              }
              catch (TimeoutException) { }
          }
      }
  }
  </code></pre>
  
  <p><code>The problem is</code> the following: when I write a line (in the console) a can see in the HyperTerminal GUI what i wrote, but when I write a line using HyperTerminal no message is read by my program that thorws always a <code>TimeoutException</code>.<br></p>
  
  <p>Why?<br>
  How can I solve this problem?<br>
  Thanks.</p>