Problem when reading TChain from file

From: Jan Hartmann <>
Date: Wed, 27 Apr 2011 14:29:08 +0200

I am having a problem if I read a TChain object from a file: The read object is not added properly to gROOT->GetListOfCleanups(). Not properly means that gROOT->GetListOfCleanups()->FindObject(chain) returns 0, but if I iterate of the list, the chain is there. This causes trouble later, because after deleting the chain an iteration over the ListOfCleanups still returns the deleted chain object, causing a segfault.
I have attached a small macro reproducing this problem.

Best regards,

PS: I'm having this problem with root 5.28c. With 5.26 and earlier everything was working fine, because TChains were not added to the ListOfCleanups.

Received on Wed Apr 27 2011 - 14:29:28 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 27 2011 - 17:50:01 CEST