<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #ff0000 2px solid">
<P>&gt; I have tried the updates but to no avail. I have a test program that<BR>&gt; appears to work well. However when that code is used in my project I still<BR>&gt; lose some characters at the end of the message. The main difference is that<BR>&gt; my project uses sockets, in another thread, to transfer the read/write data<BR>&gt; to/from another application. Could the results from the socket calls be<BR>&gt; messing with the ReadFile() results? I will make an example program that<BR>&gt; includes sockets to see if I can verify this.</P>
<P>does your program (the final one, not the test) use the same buffers and/or the same events in the two threads ?</P>
<P>As most of the read/write structures are thread-dependent, I don't really see how two threads could thrash their data, except for some buffer overflow, hence my first question.</P>
<P><BR>A+</P></BLOCKQUOTE>