Re: Memory eating

Valeri Fine (fine@bnl.gov)
Fri, 25 Jun 1999 09:03:27 -0400


> Oups.
> In my previous mail, the loop should be 400 item and not 10 :
>
> {
> gROOT->Reset() ;
> TCanvas* c1 = new TCanvas("c1","c1",500,500) ;
> TPad* tmp ;
> Int_t i ;
> char name[80];
>
> for (i=0;i<400;i++) {
> sprintf(name,"pad%d",i) ;
> tmp = new TPad(name,name,0.1,0.1,0.9,0.9) ;
> tmp->Draw() ;
> }
> }

Each your pad has about 500 x 500 = 250 000 pixmaps + (something else)
Depends of your video mode each pixel can be 1,2, 4 bytes long
In total you are creating

250 000 x 400 = 100 Mbytes (200 Mbytes or 400 Mbytes) long objects (at
least)

How large is your RAM ? What is your video mode ?

Valery