24 Nov
2004
24 Nov
'04
11:14 a.m.
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.