[C++-sig] destructor not called

Trigve trigves at yahoo.com
Sun Mar 8 21:55:19 CET 2009


Hi,
I've got problem with embedded python. When using some classes inside embedded
python, the the number of constructor/destructor doesn't match. I don't have
code because it is a big project. But the class I have problem with looks like 
that:

class SessionImpl;
class Session
{
  boost::shared_ptr<SessionImpl> m_pImpl;

  ...
};

So as you can see when the destructor is not called appropriate times, the
shared_ptr isn't destroyed. I've tried searching but no working solution was
found.

thanks

Trigve



More information about the Cplusplus-sig mailing list