[ROOT] Problem with TObjectTable::Delete()

From: Mark Boulay (mboulay@lanl.gov)
Date: Mon Jan 28 2002 - 21:11:35 MET


Hello,

	I have a class (call it class A), derived from TObject which has as a
data member a TH1F
	(call it TH1F B).
	When an object of class A is read in from file, and then the file
closed,
	a call is made to TObjectTable::Delete() deleting all objects which
were
	contained in the file. 
	The object A is first deleted, and then an attempt is made to delete B,
	since a reference to it still exists in gObjectTable.  The problem
 	is that B has presumably already been deleted along with A, since it
	is a data member of class A.

	I'm using ROOT 3.02.07 under RH linux 7.2.

Thanks in advance for assistance,
Mark



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