I guess I should redirect the standard version of StandardOutput / StandardError

If I redirect StandardOutput / StandardError when creating a Process object, should I use StreamReaders when I no longer need a Process object? Using a reflector, I see that Process.Dispose() not doing this for me (unless I am missing something).

+8
process
source share
1 answer

Yes, the process object has its own readers and their underlying threads. The redirected output retrieves the reader instance, but the main thread is still controlled by processinfo, which is automatically installed, so no, you do not need to get rid of the reader.

+7
source share

All Articles