[ROOT] TList::Delete and object ownership

From: Matt Palmer (palmer@hep.phy.cam.ac.uk)
Date: Mon Jan 26 2004 - 13:14:05 MET


Hi,

We have an application that wants to save histograms to a file.  Pretty 
simple, except those histograms are owned by some of our objects (which 
aren't saved).  When the file is closed, the histograms are deleted 
which is obviously not what we want.  I thought it would be possible to 
use one of the 2 seemingly independant ownership options: 
TList::SetOwner or TObject::kCanDelete to prevent ROOT deleting our 
objects.  However, it seems that TList::Delete ignores both of these 
options.  Is there any other way of stopping ROOT deleting our objects?

Thanks,
Matt



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET