Boost logo

Boost Users :

Subject: Re: [Boost-users] [thread] C++/CLI C# mixed code: linking to libthread yields runtime exception
From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2009-02-04 11:22:02


Anthony Williams <anthony.ajw <at> gmail.com> writes:

> The problem is that the static boost thread library tries to hook the
> native win32 PE TLS callbacks in order to ensure that the thread-local
> data used by boost thread is cleaned up correctly. This is not
> compatible with a C++/CLI executable.

So the auto-link feature should be switched off in C++/CLI, right?

> Your workaround explicitly omits the automatic TLS cleanup (and declares
> that you're doing it yourself by calling on_thread_exit at the
> appropriate time).

I am lost here.
Could you eventually provide some Good (TM) workaround and advice for this?

regards,

Markus


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net