Memory eating

Laurent Aphecetche (Laurent.Aphecetche@subatech.in2p3.fr)
Fri, 25 Jun 1999 12:30:15 +0000


Hi,

Why is the following macro so memory consuming ? When running under
Linux RH5.1 (root v2.21/08), X
eats about 90% total memory.

{
gROOT->Reset() ;
TCanvas* c1 = new TCanvas("c1","c1",500,500) ;
TPad* tmp ;
Int_t i ;
char name[80];

for (i=0;i<10;i++) {
sprintf(name,"pad%d",i) ;
tmp = new TPad(name,name,0.1,0.1,0.9,0.9) ;
tmp->Draw() ;
}
}

Thanks,

-- 
APHECETCHE Laurent (mailto:aphecetc@in2p3.fr) | TAPS/PHENIX/ALICE
SUBATECH-Ecole des Mines de Nantes-4 rue Alfred Kastler-44070 NANTES
cedex 03
TEL (+33/0) 2 51 85 84 17 - FAX (+33/0) 2 51 85 84 24
WWW: http://www-subatech.in2p3.fr/~photons