You may be using the reference to your original pair, which will not work.
I can't debug your code now, but try debugging the constructors and destructors to see whatis happenning.


Le 2 janv. 2014 08:29, "Sebastien Loriot" <sloriot.ml@gmail.com> a écrit :
Does anybody got an idea?



On 12/13/2013 10:23 AM, Sebastien Loriot wrote:
> Hi,
> In the example attached, I have a simple class A and a function append
> that appends to a python list a pair<A,A>.
> After adding an element in the list, I take a reference to each element
> A in the pair. If I then force the deletion of the pair then the A's
> got deleted too (the print function calls prints incorrect values).
> What am I doing wrong here?
> Thanks,
> Sebastien.

Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
Swig-user mailing list