Boost logo

Boost :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2004-08-02 01:48:22


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk