GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » EMC » Memory leak during EMC clustering
Re: Memory leak during EMC clustering [message #4331 is a reply to message #4329] Fri, 25 May 2007 01:08 Go to previous messageGo to previous message
Anonymous Poster From: *cern.ch
Hi there,

reading this I get the suspicion that this might be something similar to a problem I fixed in the tpc and genfit code some time ago. OK, maybe I am wrong and missing the problem, but let's give it a shot:
When you put stuff into TClonesArrays you use the overloaded new operator stuff of ROOT (black magic to me). Then you go to the next event, and you do a Clear() on the TClonesArray first of all. However, that just clears the pointers,h but it does not delete the objects on the heap. If you do Delete() on the TClonesArray instead, you call the destructors of all the objects referenced in the TClonesArray.
Reading that this problem you have even persisits when you have an empty Exec() makes me believe I could be missing the problem, but maybe it was not really completely empty afterall.

CU, Christian
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message icon14.gif
Previous Topic: geometry check
Next Topic: emc end-caps update
Goto Forum:
  


Current Time: Fri Mar 29 09:43:20 CET 2024

Total time taken to generate the page: 0.01121 seconds