|
Boost : |
From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-06-06 06:42:15
>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.
- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk