[ROOT] Re:Problem with TCanvas::Update()

From: Ivan Belotelov (belotel@mail.desy.de)
Date: Thu Sep 27 2001 - 19:26:36 MEST


Hello!
I`m affraid that your advice doesn`t work :(

Some ditails: Previous version was 3.00/00; now I change it to 3.01/06
and disable all PS statements in my code;

I`m checking two parameters: VmSize and VmRSS from /proc/$pid$/status

Right after calling TCanvas::Update() VmSise incrised by ~120kB
and VmRSS by ~50kB

Is there any way to put many plots in one .ps file without colling
 TCanvas::Update()?

Thank you.
Ivan Belotelov


On Thu, 27 Sep 2001, Rene Brun wrote:

> Hi Ivan,
>
> This has probably nothing to do with the postscript output.
> Could you try removing the ps statements, just drawing on the screen.
> Unfortunately, you do not mention which version of ROOT you are using.
> My guess is that you use an old version before the TVanvas.Draw/Update memory
> leak was corrected.
> Could you try with the pro version 3.01/06 ?
>
> Rene Brun
>
> Ivan Belotelov wrote:
> >
> > Hello!
> > I need to put a lot (6000) of histograms in .ps file.
> > I`m using the method, described in HOWTO`s in
> > the following way:
> >
> > for(int i=0; i<GEDE_list.size();i++)
> >     {
> >       llsrcResid[GEDE_list[i]]->SetLineColor(7);//blue
> >       llsnrResid[GEDE_list[i]]->SetLineColor(6);//red
> >
> >       ps.NewPage();
> >       p_Canvas->cd(1);
> >
> >       llsrcResid[GEDE_list[i]]->Draw("same");
> >       p_Canvas->cd(2);
> >        llsnrResid[GEDE_list[i]]->Draw("same");
> >       p_Canvas->Update();
> >     }
> >
> > It increases the size of my prograam in memory to ~ 100MB
> >
> > What should be done to avoid it?
> >
> > Thanks.
> >
> > Ivan Belotelov.
>



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