Re: [ROOT] deleting pointers

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Mar 29 2003 - 16:46:23 MET


Hi,

You are getting a seg fault because you delete an object already 
deleted.
When deleting the file, all objects associated to this file
are also deleted. Please read the chapter on Object Ownership
in the Users Guide.

Rene Brun

On Wed, 26 
Mar 
2003 jgonzalez@neuub0.physics.neu.edu wrote:

> Hi all
> 
> In the program I give you attached I get a segmentetion fault when I
> delete the file first and then delete the ntuple. It works ok if I do it
> the other way. Any idea why this is happening?. Note that the thing does
> nothing! it declares my ntuple, my file, finds the ntuple, sets some
> friends, sets the addresses, loops over the ntuple doing nothing, deletes
> everything...
> that's it.
> 
> Javier
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET