SpawnProcess fails when console is hidden
Adam D. Ruppe
destructionator at gmail.com
Sun Sep 8 06:58:14 PDT 2013
My guess, just looking at it, is that spawnProcess fails because
there's no streams available for stdin, stdout, and stderr. It
tries to reuse the ones of the parent process, but without a
console they don't work.
It might help to use Config.suppressConsole.. I'm just guessing
but maybe try:
spawnProcess(`[c:\.......]`, recipe, Config.suppressConsole);
and see what happens. Alternatively maybe redirect the stdin,
stdout, and stderr to log files instead of using the default (by
passing File arguments to spawnProcess too)
More information about the Digitalmars-d-learn
mailing list