[ROOT] TClonesArray and Clear...

From: Artur Szostak (Artur.Szostak@fi.uib.no)
Date: Tue Jun 03 2003 - 11:20:20 MEST


Is it mandatory to call Clear after one is done using a TClonesArray. I would 
have expected the destructor to clean up the array by itself anyway. Note I 
am using the object in the following way:

{
	TClonesArray array("SomeClass", 100);
	// do stuff with the array...
	array.Clear();  // <= Surely the destructor does this.
}

If I do not explicitly call Clear() I get a SEGV. Does this mean I am  using 
TClonesArray incorrectly?

-- 

Artur Szostak

Department of Physics
University of Cape Town
Email: Artur.Szostak@fi.uib.no  (only valid until 30 June)
         artur@alice.phy.uct.ac.za



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET