问题:调用一个外部程序,并把那个进程的stdout与stderr显示到一个TextBox。
但是TextBox并不能实时地显示进程的stdout与stderr的数据,必须要等到进程结束,才一股脑显示出来, 如果进程执行几分钟,显示一直跟不上来,根本是无法忍受。 套用老外的话:
RedirectStandardOutput in Process class is not working until the process is killed。
有什什么好的办法,实时地显示进程的stdout与stderr数据?在Google上搜索好久,叶没找到解决办法
但是TextBox并不能实时地显示进程的stdout与stderr的数据,必须要等到进程结束,才一股脑显示出来, 如果进程执行几分钟,显示一直跟不上来,根本是无法忍受。 套用老外的话:
RedirectStandardOutput in Process class is not working until the process is killed。
有什什么好的办法,实时地显示进程的stdout与stderr数据?在Google上搜索好久,叶没找到解决办法
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货