[Mono-list] StreamReader

Gonzalo Paniagua Javier gonzalo at ximian.com
Mon Apr 3 14:21:54 EDT 2006

On Fri, 2006-03-31 at 20:17 -0500, Lee Connell wrote:
> I am using System.Diagnostics.Process to execute an external process.  When 
> I set RedirectStandardOutput = true and attempt to read the entire stream 
> either with ReadToEnd(); or looping with ReadLine(); the application freezes 
> on the last read.
> This happens in linux and windows so I'm assuming it's by design and I'm 
> doing something wrong.
> What do I need to do to read the whole stream and continue with the 
> application?

The program you're running has to end for that stream to reach EOF.


More information about the Mono-list mailing list