
2 Aug
2004
2 Aug
'04
6:48 a.m.
Tony Juricic wrote:
Either A or B will cause tls_callback to be called (breakpoint will be hit) with VC++ 7.1, but only and only if the following is also a part of the static library code:
#pragma data_seg(push, old_seg) #pragma data_seg(".CRT$XLB")
Yes, it seems that this is the only way MSVC71 can append address of your callback to __tls_used. Problem si that it does not work with MSVC6 :<< B.