P
Hi everyone,
I am writing buffers to the serial port one after the other in a sequence. But since the write operation cannot finish and a new buffer becomes available for writing, some of my buffers are lost.How can I make sure that all my buffers are written and none of them is lost?
I tried to use Sleep() after each write operation to let the WriteFile() function finish writing, but it does not seem to help. Please advise.
Thanks in advance.
I am writing buffers to the serial port one after the other in a sequence. But since the write operation cannot finish and a new buffer becomes available for writing, some of my buffers are lost.How can I make sure that all my buffers are written and none of them is lost?
I tried to use Sleep() after each write operation to let the WriteFile() function finish writing, but it does not seem to help. Please advise.
Thanks in advance.
