Thread overview
[Issue 14318] Shared library stdio not loaded
Mar 22, 2015
Richard Cattermole
Mar 30, 2015
Vladimir Panteleev
Mar 31, 2015
Sobirari Muhomori
Mar 22, 2016
toop@mt2015.com
Dec 17, 2022
Iain Buclaw
Dec 17, 2022
Iain Buclaw
Jun 06, 2023
Richard Cattermole
March 22, 2015
https://issues.dlang.org/show_bug.cgi?id=14318

Richard Cattermole <alphaglosined@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Shared library stdio not    |Shared library stdio not
                   |loadded                     |loaded

--
March 30, 2015
https://issues.dlang.org/show_bug.cgi?id=14318

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com

--- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> ---
Possibly related to issue 14327?

--
March 31, 2015
https://issues.dlang.org/show_bug.cgi?id=14318

Sobirari Muhomori <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=14327

--
March 17, 2016
https://issues.dlang.org/show_bug.cgi?id=14318

wyrex@openmailbox.org changed:

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

--- Comment #2 from wyrex@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.

--
March 22, 2016
https://issues.dlang.org/show_bug.cgi?id=14318

--- Comment #3 from toop@mt2015.com ---
(In reply to toop from comment #2)
> 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.

Sorry, it turned out to be my fault. dll_process_attach( hInstance, true ); call was missing in the dll and it caused all sorts of problems.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14318

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14318

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4

--
June 06, 2023
https://issues.dlang.org/show_bug.cgi?id=14318

Richard Cattermole <alphaglosined@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--