Hi. I am sending some data over a networkstream.
The datasize is 97
The buffersize is 1.
Data is a list of bytes.
When the bytecount reaches 94 the do while loop exist itself.
Any ideas why?
Code:While Stream.CanRead Do ByteCount += Stream.Read(Buffer, 0, BufferSize) Data.AddRange(Buffer) If ByteCount = 94 Then Console.WriteLine("BC: " & ByteCount) Console.WriteLine("DS: " & DataSize) End If Loop While ByteCount < DataSize End While