Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost::shared_ptr] Memory is not freed
From: Panagiotis Foteinos (pafotein_at_[hidden])
Date: 2011-03-27 21:17:17


Thank you all for the replies.

Yes, this is the reason: cyclic references.

Regards,
Panagiotis Foteinos

On Sun, Mar 27, 2011 at 7:05 PM, liam mail <liam.list_at_[hidden]> wrote:

>
>
> On 27 March 2011 23:57, Panagiotis Foteinos <pafotein_at_[hidden]> wrote:
>
>> Hello users.
>> Could you think of any scenarios that would cause the observed behaviour?
>>
>>
>> Any ideas would be welcome.
>>
>> OS: Ubuntu 64
>> Compiler: gcc version 4.4.3
>>
>> Best Regards,
>> Panagiotis Foteinos
>>
>>
> Sounds like cyclic references[1] for which you may need to use weak_ptr
> 's.
> [1]
> http://www.codeproject.com/KB/stl/boostsmartptr.aspx#Cyclic%20References
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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