Michal Jaworski - 2002-06-13

I use MS VC++ 6.0 on Win2K. I use MS VC++ iostreams.
I use TCPStream for socket communication. I use get() and read() for reading, put() and write() for writing, good() for checking the state.
There are two threads, one for writing and one for reading from a stream. They access the stream concurrently.
Sometimes when there is a large flow of data the reading thread either throws exception (caught in catch( ... ) block ) or reads a byte of rubbish.
Has something like this ever happend to You?
Or maybe I simply do something wrong?
Regards