[Mono-devel-list] Regarding blocking Read operation
tjain at novell.com
Tue Jun 7 09:21:34 EDT 2005
I am facing some problem with the read operations being blocking.
I am launching a process and and have redirected the output/error
streams. Then using the Read method of the StreamReader class, I read
from the redirected output/error streams of the process. If there is no
data coming in either of these streams, then the Read method blocks and
does not return.
As I understand from the documentation, ReadBlock is the blocking
version of Read method. However, when there is no data in a stream then
the Read operation is also blocking.
Is there any other way to do a non blocking read opeartion?
Thanks in Advance,
More information about the Mono-devel-list