How to avoid crashing win32 app when stdout is unavailable and write is called?

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Apr 27 17:13:54 PDT 2012


On 4/27/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:
>

I am such an idiot, I've already asked this before. And Vlad gave me a
perfectly good answer the last time:

if (!GetConsoleWindow()) {
    stdout.open("stdout.log", "w");
    stderr.open("stderr.log", "w");
}


More information about the Digitalmars-d-learn mailing list