https://issues.dlang.org/show_bug.cgi?id=14318

wy...@openmailbox.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wy...@openmailbox.org

--- Comment #2 from wy...@openmailbox.org ---
I get error: privileged instruction at windowsHandleOpen line because there is
no console. 

if (!AttachConsole(ATTACH_PARENT_PROCESS))
{
    AllocConsole();
}

After this there is still no output from writeln, writefln and printf in my app
calling DLL and in DLL itself but writefln no longer fails with
std.exception.ErrnoException (Bad file descriptor). flush() doesn't do anything
but writeln/fln works after you call stdout.setvbuf(1, _IONBF); with any value
above 0. printf doesn't work at all.

--

Reply via email to