Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-03-29 14:10:35


Ovanes Markarian wrote:

> I had some similar issue but not with shared_ptr. My problem was the
> redefinition for debug purposes (to make mem allocation statistics)
> of the global new operator. In this case the default allocator used
> the rewritten new operator to allocate container storage and the
> rewritten operator used the std::allocator and this cycle caused the
> behaviour. Is there any chance that this might be the cause?

Not likely, ::operator new in sp_debug_hooks just uses malloc to allocate
memory and then marks it with a magic value for tracking purposes.


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