Synchroniously getting a part of output of a sub-process #90882
-
Maybe this doesn't work due to incorrect use of .NET functions, The Btw:
Also, in case .NET doesn't have this functionality, if async .NET Framework 4.8.1
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
If you're setting up two processes to communicate with each other, it's preferrable (for multiple reasons) to use something other than the console to do so. Additionally, it would be beneficial to move to .NET Core if possible. |
Beta Was this translation helpful? Give feedback.
-
It looks like the process doesn't exit since it's stdout is blocked. Reading through the end of the pipe will unblock it and make it gracefully exit. |
Beta Was this translation helpful? Give feedback.
It should be
WaitForExit
blocking. The process is blocked because the output buffer is full.You can try to observe this by writing to stdout and stderr alternately, and see whether you can get output in the other stream.