[ROOT] Documentation of Object Ownership

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Apr 05 2001 - 08:19:08 MEST


Hi Phil,

This message was originally sent by Suzanne Panacek, but did not arrive
to roottalk. I am reposting the message.

In response to your question, we decided to write a new chapter in the
documentation describing the objects ownership in ROOT. You can find a pdf file
for this chapter at:
   http://root.cern.ch/root/ObjectOwnership.pdf

This will be integrated in a new version of the Users Guide shortly.

We are also extending the documentation on the I/O system in general to reflect
the current functionality and also the current developments.

Suzanne Panacek,
Rene Brun


Phil Adamson wrote:
> 
> On Fri, 30 Mar 2001, Rene Brun wrote:
> > Concerning your other points. It is bad practice to allocate
> > histograms in the stack if they are associated with a file.
> > When closing the file, this object will be deleted.
> 
> Hi Rene,
>         Is it documented anywhere (cohesively, rather than in various
> scattered places) under what circumstances ownership of objects is claimed
> by ROOT and under which circmstances the creator is left with
> juristdiction over the object? This is not at all clear from any of the
> documentation.
> 
>         Phil
> 
> PS. I have a test case of highly counter-intuitive behaviour with TGraph
> objects - I'll tets it next week with root 3.00, and post if it's still
> confusing.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET