C# process standard output delay

前端 未结 1 1054
不思量自难忘°
不思量自难忘° 2020-12-21 20:23

From a C# form I am running a process with start info similar to Redirect console output to textbox in separate program and C# get process output while running, the process

相关标签:
1条回答
  • 2020-12-21 20:47

    The buffering happens on console program end. By default, stdout is fully buffered if known to be redirected:

    If stdout is known to not refer to an interactive device, the stream is fully buffered. Otherwise, it is library-dependent whether the stream is line buffered or not buffered by default (see setvbuf). Source

    So, unless you can alter the console program source to disable buffering, nothing can be done on GUI program side.

    0 讨论(0)
提交回复
热议问题