Boost logo

Boost Users :

From: Boris (boriss_at_[hidden])
Date: 2007-09-14 06:20:17


On Tue, 11 Sep 2007 16:40:25 +0300, Peter Dimov <pdimov_at_[hidden]> wrote:

> Boris wrote:
>> Is the following problem already known?
>>
>> 1) Create a new C++/CLI project in Visual Studio 2005 (eg. a console
>> application).
>> 2) Include the header <boost/thread/mutex.hpp>.
>>
>> That's all. When you build and run the application you see the
>> following Windows error message:
>>
>> "The application failed to initialize properly (0xc000007b). Click on
>> OK to terminate the application."
>
> Does this also happen with the DLL version of Boost.Threads?
>
> The static library implements thread-local storage cleanup in a way that
> VS2005 does not support (and MS apparently has no plans to fix that.)

I've been defining BOOST_THREAD_USE_DLL in the .NET project now. That
seems to work. The C++ DLL still binds to Boost.Thread statically (and
doesn't define BOOST_THREAD_USE_DLL of course). As the .NET DLL doesn't
use Boost.Thread itself I guess it should be fine to define
BOOST_THREAD_USE_DLL.

Boris


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