Will SerialPort DataRecieved Event Trigger Repeatedly..

Posted by Gunner on Stack Overflow See other posts from Stack Overflow or by Gunner
Published on 2010-05-16T18:25:05Z Indexed on 2010/05/16 18:30 UTC
Read the original article Hit count: 249

Filed under:
|
|
|

Suppose I read data from SerialPort whenever there is 100 or bytes available or else nothing is done. That means, the remaining data will still be available in the SerialPort Buffer. This reading is done inside the event handler of DataReceived.

Now If a situation arises, when there there is, say 50 bytes in the SerilaPort Buffer and no more data comes. From what I understand, the DataReceived Event will be triggered when ever there is certain amount of bytes available for reading from the Buffer.

Now, in the given scenario, If i never read those 50 bytes, will the Event get activated continuously due to the presence of these unread bytes?

© Stack Overflow or respective owner

Related posts about c#

Related posts about serial-port