GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » memory leaks
Re: memory leaks [message #9360 is a reply to message #9357] Wed, 09 September 2009 16:02 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *
Here a summary cut&paste:

Clear the clones array. Only use this routine when your objects don't allocate memory
since it will not call the object dtors.

Clear the clones array. Use this routine when your objects allocate  memory (e.g. objects
inheriting from TNamed or containing TStrings  allocate memory).
If not you better use Clear() since if is faster.

As far as I have understod, the usage of clear or delete depends on the data members of the object itself

[Updated on: Wed, 09 September 2009 16:03]

Report message to a moderator

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mac OS X 10.6 Snow Leopard
Next Topic: [Release] Analysis: Rho & PidCandidate
Goto Forum:

Current Time: Thu Jul 25 15:53:38 CEST 2024

Total time taken to generate the page: 0.00724 seconds