[C++-sig] Recursion problem while testing inheritance

2009-04-09 Thread Luciano M. Wolf
Hi, I'm doing some experiments calling methods from parent (or grandparent) class. I have a "Base" class defining a "test" virtual method. Class "Derived" inherits from "Base" but does not implement "test". At Python side (test.py) I redefine test and do a call to "Base.test()". The program ends u

[C++-sig] Using destructors in the right way

2008-11-04 Thread Luciano M. Wolf
Hi all, I'm using boost::python to make bindings and now I got in trouble. I'm trying to avoid Python deleting my C++ class before other classes but I didn't find any clue on how to do this. Is there a way to tell boost that my object should be the last one to be deleted? Thanks in advance! Regar