RE: [Boost-users] Re: Using shared_ptr across shared library boun dary

12 Mar
2004
12 Mar
'04
2:10 p.m.
The biggest caveat is to ensure you are using the DLL version of the C Runtime library. If you use the static library version,
have its own heap, and a pointer *must* be deallocated in
"Jim.Hyslop"
writes: then each DLL will the same DLL in which it was allocated.
Please stop; this is misinformation. What I wrote holds true for raw pointers. I had assumed it also held true for the Boost smart pointers, but as you pointed out in the other email - and I verified with a quick test - the smart pointers get around this
David Abrahams wrote: problem. My apologies for the confusion. -- Jim Hyslop Senior Software Designer Leitch Technology International Inc. (http://www.leitch.com) Columnist, C/C++ Users Journal (http://www.cuj.com/experts)
7656
Age (days ago)
7656
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jim.Hyslop