Re: Memory Leak and TGraph slider question

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Oct 01 1998 - 11:35:10 MEST


Eddy Offermann wrote:
> 
> Dear Root-ers,
> 
> two questions:
> 
> 1) two weeks ago, I had a question concerning cleanup of objects.
>    The answer of Rene Brun seems only to solve part of the problem:
>    the program does not crash anymore but we still have
>    a memory leak. Below is a macro that makes a root file, followed
>    by a macro that keeps on opening and closing it.
>    Even when I comment out the "cd" and "tree" statements, the
>    program size keeps growing.
>    Maybe it is silly to be worried about an increase of 1Mb after about
>    opening/closing 1000 files but if anybody could shed some light
>    on this, I would appreciate it.
> 

Eddy,
Thanks for reporting this problem and providing a simple test.
This was,indeed, a memory leak problem. It is now fixed
in my development version.

> 
> 2) I have problems using the slider on "Tgraph" objects. Running,
>    for instance, graph.C in the tutorials-directory, selecting
>    with my mouse the graph, choosing DrawPanel, results in the message:
> 
>    root [1] Error in <TClass::GetMethod>:
>    Did not find matching TMethod <GetOption> with "" for TGraph
> 
>    However, using the slider in the FitPanel does result in a
>    different fitting region.
> 
>    Is there another way to zoom-in on a graph ??

The TGraph::DrawPanel function is currently not implemented.
I have added a message in the new version.
Currently there are two ways to zoom on a graph:
 - via the command line by changing the pad range
 - drawing a TH1F empty object (setting min and max), then
    drawing the graph on top and invoking DrawPanel on the TH1F object.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:38 MET