[ROOT] Destructor problem

From: Simon Dean (sdean@hep.man.ac.uk)
Date: Wed Apr 03 2002 - 09:15:44 MEST


Hi there,

Could someone please explain to me the subtle nuances of destructors in
classes which inherit from TObject? I'm having problems with crashes
caused by such destructors, although I think the problem may be due to
delete statements inside them which refer to other classes that inherit
from TObject. 

What is TObject->Delete() and what is it used for? Would I do:

	delete inheritedclass
or
	inheritedclass->Delete()

for cleaning up memory.

cheers,

Simon



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:47 MET