Re: [ROOT] How to use kCanDelete correctly?

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Jul 25 2001 - 11:03:16 MEST


Double deletion. Is that what you see?

-- Fons


Thomas Bretz wrote:
> 
> Hi,
> 
> is the following possible? What will happen?
> --------------------
> TH1F *h = new TH1F([...]);
> TCanvas *c = new TCanvas([...]);
> h->SetBit(kCanDelete);
> h->Draw([...]);
> delete c;
> delete h;     <----------- ???
> ---------------------
> 
> Thanks,
> Thomas.

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



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