stream does not support concurrent IO read or write operations stream does not support concurrent IO read or write operations multithreading multithreading

stream does not support concurrent IO read or write operations


It sounds simply as though you are trying to do two different operations on the same stream at the same time from different threads. Adding a lock (Monitor) or Mutex should help synchronise access to the stream.