Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2004-11-24 06:14:30


> Naturally boost::threads is a dll only (at least v 1.30 which i'm
> currently
> using) and it itself can either link dynamically or statically to the crt.
> It doesn't make any difference which though. I have to link dynamically to
> crt in my program to avoid the leak. Why should this make a difference?

That's your problem: there must be one single rtl shared both by your code
and the Boost.Threads dll: and that means using the dynamic C runtime.
Frankly I'm surprised your code didn't just crash if you were mixing
runtimes :-(

John.


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