This is my first post in this forum, I am hoping that someone can help me with the next problem.
Currently I am working on i/o multhithreading for Brutus. The GUI starts the first instance of Brutus which communicates fine with the GUI (winboard). Brutus starts another process which does the actual thinking and prints the resulting move to stdout.
When I start Brutus as a console, everything works fine. Under Arena as well: no problems. Under winboard however, the thinkingprocess isn't printing anything visibly!
I guess it has something to do with inheritace of the pipe handle. How can I do that? I have tried the following (which didn't work):
Code: Select all
STARTUPINFO si;
memset(& si, 0, sizeof(si));
si.cb = sizeof(STARTUPINFO);
si.dwFlags = STARTF_USESHOWWINDOW|STARTF_USESTDHANDLES;
si.hStdOutput=stdout;
...followed by....
CreateProcess(NULL, newName, NULL, NULL, TRUE, 0, 0, NULL, & si, & pi)
Hoping for a good suggestion, best wishes,
Stephan