win64 DLL stdout printing after main process completes
frame
frame86 at live.com
Mon Apr 26 13:44:19 UTC 2021
On Sunday, 25 April 2021 at 15:01:25 UTC, cc wrote:
> Adding a note in case anyone stumbles across this with a
> similar problem:
> Adding `stdout.setvbuf(0, _IONBF);` to both the main and DLL
> will cause D to autoflush after every write call without
> requiring a manual flush (which seems to happen quite often
> when running under anything other than a basic Windows command
> prompt).
I cannot reproduce this on Windows 10. It would be just
interesting to know your compiler version and OS and if you have
installed any Visual Studio tools or Visual C runtimes, thanks.
More information about the Digitalmars-d-learn
mailing list