Problems with Process intercommunication :/ -
05-01-2005
, 03:40 PM
I have a console app which outputs a lot of text to stdout (~300 lines)
then wants something from stdin and the outputs some lines again.
My C# app now starts that app and redirects its in- and outputs.
I launched 2 threads to read stdout and stderr simultaneously.
The problem now is that my c# app only reads up to 229 lines of text.
Only after I send something to stdin from my console app, I get the rest
of the text (and the text that is written after reading from stdin).
Whats going on here? |