I have a question about TLS.
I put below code into both EXE and DLL

#define TLS __declspec(thread)
TLS int a;

In multithread, the EXE program is working well.
But DLL program attached to multithreading program such as IIS isn't working.
In In-Process COM, also is not working.

I want to use TLS in COM. But I'm not convinced that this is realizable.

Is it OK if I believe TLS will be well working in COM?

A programmer who loves Goethe.