How to force console

Adam D. Ruppe destructionator at gmail.com
Thu Aug 2 13:26:23 UTC 2018


On Thursday, 2 August 2018 at 13:11:20 UTC, Everlast wrote:
> But, when I put this stuff in a static this in a windowsx64 
> dll, the static this is called about 100 times!!! Not once!

try

shared static this()


instead of just

static this()


the latter is called once per thread, the former once per 
process. that might be the difference. maybe. 100 times still 
seems crazy.


More information about the Digitalmars-d-learn mailing list