I am trying to access the STDOUT of a child console application,
At first I tried to use Anonymous Pipes with Info from:
then, I found this page at Microsoft Support : http://support.microsoft.com/kb/190351 that states:
"Note Child processes that use such C run-time functions as printf() and fprintf() can behave poorly when redirected. The C run-time functions maintain separate IO buffers. When redirected, these buffers might not be flushed immediately after each IO call. As a result, the output to the redirection pipe of a printf() call or the input from a getch() call is not flushed immediately and delays, sometimes-infinite delays occur. This problem is avoided if the child process flushes the IO buffers after each call to a C run-time IO function. Only the child process can flush its C run-time IO buffers. A process can flush its C run-time IO buffers by calling the fflush() function."
Any Idea what can I do in order to solve this besides modifying the source?
Edited by Eliad Moshe, 16 February 2014 - 11:29 PM.