Hi,
When you read objects via GetEntry, you must make sure to clear
any dynamic data structures in your object(s) before reading the next entry.
see Users_Guide, section "reading the Tree" page 209.
See also $ROOTSYS/test/MainEvent.cxx, Event.cxx
Rene Brun
Claus Horn wrote:
>
> Dear ROOTers,
>
> I have the problem that the memory usage increases linearly while I am
> looping over the events in my ntuple. At the end the program just crashes.
>
> Now I commented everything out and my main loop just looks like:
>
> for (Int_t jentry=0; jentry< GetNevents(n_events) ;jentry++) {
> Int_t ientry( GetIentry(jentry) );
> if (ientry < 0) break;
> }//
>
> Surprisingly I still see a (now slower, but still) linear increase
> in used memory.
> Does anyone have an explanation for that?
> Hope to hear from you,
>
> Claus
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET