Linear Collider Forum



Home » Software Tools » LCIO » copy constructor for LCFixedObject
Re: copy constructor for LCFixedObject [message #1305 is a reply to message #1304] Tue, 20 November 2007 05:06 Go to previous messageGo to previous message
killenberg
Messages: 125
Registered: July 2005
Location: CERN
BTW:

It was exactly the fact that the object is deleted in the destructor which caused the segfault. If an object takes over the ownership and deletes the object it points to, then it should have a copy constructor which duplicates this object.
This only holds for the LCFixedObject, as it does not derive from LCObject and is not a container (like a Track containing pointers to Hits), but a handle which can have the ownership.

Martin


Martin Killenberg

CERN
martin.killenberg@cern.ch
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:new LCIO release v01-09
Next Topic:getEventMap(), memory consumption
Goto Forum:
  


Current Time: Thu Nov 15 01:09:48 Pacific Standard Time 2018
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software