Have you made the Base Class's destructor Virtual ?
If not then this is your problem.  BaseClass's should have
virtual destructors for exactly this reason.

Ron Gouldner

<pre>

FWIW, I had problems getting destructors to be called as well. The problem
is that if you create a subclass, but then call delete when the type is the
superclass, the base class destructor gets called, not the destructor of
the actual object.

Brian

</pre>


Reply via email to