Re: Problems with TChain/GetEvent() & creating TNamed objects

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Aug 03 1998 - 18:42:35 MEST


Hi Mike,

  please send me some examples showing the problem.
Also try using v 2.00/10.

Cheers, Fons.


meb@gorby.dataventures.com wrote:
> 
> Dear roottalk,
> 
> Problem 1)
> 
> I have a macro in which I create a chain of root files. Each root file
> contains the same tree structure - the structure is built up with
> branches of ints, branches with floats, and branches with small
> histograms.
> 
> In this macro, I loop over events and fill histograms, ... It turns
> out that from the interpreter I read the first event, process it, and
> then get a segmentation fault when I try to read the second event. If
> I insert the necessary header files so I can create an executable
> program, I find that the compiled macro works just fine and I can read
> all the events without seg faulting.
> 
> Any ideas why GetEvent() raises seg faults in the interpreter for chains?
> 
> Problem 2)
> 
> I wish to create a object that inherits from TNamed. What are the
> steps required for creating TNamed objects. I've followed examples for
> several already existing TNamed objects, but I'm missing
> something. When I create an instance of my TNamed object and quit
> root, I get "illegal instruction". If I delete the object explicitly
> ("delete obj") and then quit, I don't get "illegal instruction". What
> have I missed?
> 
> I'm running AIX 4.1.5 and ROOT V2.0/8.
> 
> - Mike

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:35 MET