You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "William A. Rowe, Jr." <wr...@rowe-clan.net> on 2001/03/25 21:09:22 UTC

Win32: A very obscure side effect

I'm not certain we are ever affected by the FreeConsole() call that was much debated
about a year ago, since we bypass it if we have the proper command line args.  But
as an FYI to those interested [from the Microsoft Oct 2000 PSDK];

    AllocConsole also sets up standard input, standard output, and standard error 
    handles for the new console. The standard input handle is a handle to the console's
    input buffer, and the standard output and standard error handles are handles to the
    console's screen buffer. To retrieve these handles, use the GetStdHandle function. 

The obvious interaction is that our stdin/out/err handles are destroyed.  Explains several
odd artifacts reported over the course of the last year.  Long live the FreeConsole test :-(

Bill