[Issue 23969] Windows cannot export/import TLS from DLLs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 5 11:25:41 UTC 2023


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

Richard Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alphaglosined at gmail.com

--- Comment #3 from Richard Cattermole <alphaglosined at gmail.com> ---
(In reply to Walter Bright from comment #2)
> TL/DR: exporting TLS from DLLs causes a system crash.

But only on operating systems below Vista, which we don't support.

However in saying that, we should probably disallow exporting of TLS variables
anyway as it'll be platform/libc dependent and that could get old very fast
trying to figure out why your application doesn't work when ported. Only then
to have to rewrite everything.

--


More information about the Digitalmars-d-bugs mailing list