c# - will a program deadlock if the error stream is not read from regularly? -


i wanted check error stream program right after starts make sure ran successfully.

processstartinfo startinfo = new processstartinfo(); startinfo.redirectstandarderror = true; string errortext = process.standarderror.readtoend(); 

however, wondering have redirect process's standard error file.

i think if nothing reading std error , program writes many errors stream, buffer fill up. don't know how processstartinfo.redirectstandarderror works, assume buffer won't automatically write file when full.

in order avoid freezing program i'm reading from, should stderror redirected file instead? , read file string check errors @ startup?


Comments

Popular posts from this blog

javascript - Complete OpenIDConnect auth when requesting via Ajax -

apache - PHP Soap issue while content length is larger -

c# - Replace text in MailItem Body -