[Issue 14318] Shared library stdio not loaded
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Mar 17 14:48:17 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=14318
wyrex at openmailbox.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |wyrex at openmailbox.org
--- Comment #2 from wyrex at 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.
--
More information about the Digitalmars-d-bugs
mailing list