title: why SerialDataReceivedEventHandler work only when i put break point C#?
body: <p>i made an event handler for receive data from Serial Port and it's work perfectly only when i put break point and when i remove it the function doesn't invoke this is my code 
  am already declare the port as object of SerialPort</p>
  
  <pre><code>private static void DataReceivedHandler( object sender,SerialDataReceivedEventArgs e)
  {
      SerialPort sp = (SerialPort)sender;
      // sp.Open();
      string indata = sp.ReadExisting();
      Console.WriteLine("Data Received:");
      if (indata == "kitchen_light_on\r\n")
          f1.update_flag("living_light", 1);
      else if(indata == "kitchen_light_off\r\n")
          f1.update_flag("living_light", 0);
  } 
  
  port.DataReceived += new SerialDataReceivedEventHandler(DataReceivedHandler); 
  </code></pre>