27 Mar
2011
27 Mar
'11
11:11 p.m.
I wish I could include the code in this email, but it is very longĀ and complicated. Therefore, I am kindly asking you to guess what might have been wrong with the boost:shared_ptr. Could you think of any scenarios that would cause the observed bahavior?
Circular references. If A has shared_ptr to B, and B has shared_ptr to A, they both will never be release. To break such circular referencing, you should use weak_ptr for one direction.