Boost logo

Boost Users :

From: Jim.Hyslop (Jim.Hyslop_at_[hidden])
Date: 2004-03-12 09:10:37


David Abrahams wrote:
> "Jim.Hyslop" <Jim.Hyslop_at_[hidden]> writes:
> > The biggest caveat is to ensure you are using the DLL
> version of the C
> > Runtime library. If you use the static library version,
> then each DLL will
> > have its own heap, and a pointer *must* be deallocated in
> 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
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)

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