Re: [ROOT] shared libs

From: Rene Brun (brun@pcbrun.cern.ch)
Date: Tue Oct 05 2004 - 23:35:48 MEST


This looks like a typical double delete problem.
Could you send the shortest possible running file or set of files 
reproducing the problem?
Since you do not indicate which version of ROOT you are using, I assume 
that you use 4.00/08 or newer.
If you use an older version, please try first with a more recent version.

Rene Brun

On Tue, 
5 Oct 2004, Margar 
SIMONYAN wrote:

> Dear users of ROOT 
> 
> I have several classes which I am compiling from CINT and loading the 
> shared libraries from rootlogon.C The class dependency is the following
> 
> class TileFile{ ... //abstract base class}
> class Tile23 :public TileFile {...}
> class Tile02 :public Tile23{...}
> class Tile03 :public Tile23{...}
> class Tile04 :public TileFile{...}
> class TileInfo {...//some useful thinks}
> class TileAlg { TileFile * t; //polymorphic
>                 TileInfo i; ...}
> 
> If I change something local in Tile04 then is it necessary to re-compile 
> and re-load TileFile and TileAlg ?
> In Tile04 I am adding friend to fChain using TTree::AddFriend().
> All classes in the hierarchy have virtual destructors with the 
> following implementation (Tile23, Tile02, Tile03, Tile04)
>  
> if (!fChain) return;
>  delete fChain->GetCurrentFile();  
> 
> but Tile04::~Tile04() makes CINT crash. I suppose it depends on 
> TTree::AddFriend(), any idea ?
> 
> Best regards,
>                Margar
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET