locked
Timeout Delays RRS feed

  • Question

  • Hello,
    I am stuck in serial port communication somewhere :)
    My problem is : I am using port.ReadLine() function to read the strings thru serial port communication.
    There is one place where other system hangs, so what I want to do in my program to wait for the string to receive for may be 10 seconds, if I don't get string, I'll show some message.
    Please give me some ideas how to implement this feature in C#

    Thanks in advance
    Thursday, August 14, 2008 5:41 PM

Answers

  • Use the SerialPort.ReadTimeout property.
    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Tuesday, August 19, 2008 12:03 PM
    Friday, August 15, 2008 12:07 AM