Linear Collider Forum

Home » Software Tools » LCIO » confusion about memory issues.
confusion about memory issues. [message #1667] Thu, 18 December 2008 21:14 Go to previous message
Messages: 15
Registered: September 2008
Location: IU
Hi I am beginning with LCIO.

In the manual I saw that every reader is created by the singlet & factory. What I am curious is how these reader can be free'd.

There is no destroy/dispose method in the factory.

Is it OK if I use delete to free them?
If I delete them, will the stream be flushed to the storage automatically?

If I close them, are thye automacially free'd or do I need to explicitly delete them?

Any clearify will be appriecated. I haven't been coding in C++ for ages.


- Yu
Read Message
Read Message
Read Message
Previous Topic:Strange behaviour of LCEvent::takeCollection()
Next Topic:new release v01-11
Goto Forum:

Current Time: Thu Oct 17 06:54:58 Pacific Daylight Time 2019
.:: Contact :: Home ::.

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