[ROOT] Re:

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Sep 27 2001 - 16:12:59 MEST


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