Boost logo

Boost :

From: Ken shaw (ken_at_[hidden])
Date: 2001-06-06 11:30:19


----- Original Message -----
From: "John Maddock" <John_Maddock_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, June 06, 2001 6:42 AM
Subject: Re: [boost] Re: Boost Build System

>
> >Don't know if really bugs per se but try passing STL objects between DLL
> functions without using the multithreaded libraries. Your code will fail
in
> bizarre and perverse fashion. This is a well known problem and relates to
> the fact that different DLL's being used by the same application are very
> nearly seperate threads and code that is not at least reasonably
threadsafe
> kills it. In particular reference counting and other sorts of static data
> get hopelessly messed up.
> <
>
> Are you sure you're not just mixing a static single threaded library, with
> dll's. That's an absolute non-starter and is not a bug - if you are
> building/using dll's, then you *must* use a dll runtime (this isn't MS
> specific BTW, Borland's runtimes have the same limitation), and since the
> only dll runtime that MS ships is multithreaded, that's what you have to
> use - there is no "dll single threaded runtime" option.
>

No it is a problem with template code being in each DLL that handles the
object. Various workarounds have to be done to make template code work in
this instance. One is to always use the multithreaded DLL's.

Ken Shaw


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