|
|
Re: Memory leak during EMC clustering [message #4331 is a reply to message #4329] |
Fri, 25 May 2007 01:08 |
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
|
|
|
|
|