Re: [ROOT] DrawCopy

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Feb 20 2001 - 12:12:34 MET


Hi Anton,

Objects created by the TH1::DrawCopy functions are automatically deleted
when you clear the pad. These functions also return a TH1* that you can delete
before clearing the pad if you like.

Objects created by TF1::DrawCopy are not deleted when you clear the pad.
This is inconsistent with the behaviour in TH1::DrawCopy. I will update
TF1::DrawCopy such that the created object is automatically deleted when you
clear the pad.

Rene Brun

Anton Fokin wrote:
> 
> Hi rooters,
> 
> I am curious what happens with ::DrawCopy() created objects? Are they
> deleted somehow (together with canvas destruction or)?
> 
> Regards,
> Anton
> 
> http://www.smartquant.com



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