Re: Bug in system? TNode

Michael Katz-Hyman (michaelk@jlab.org)
Tue, 20 Jul 1999 09:07:30 -0400 (EDT)


Disrigard, i found my problems..stupid mistake.

Michael

On Tue, 20 Jul 1999, Michael Katz-Hyman wrote:

> I have two arrays, one is an array of TNode and the other is an array of
> TBRIK. The following executions in the ROOT interpreter (and in seperate
> compiled code) results in a segmentation violation.
>
> // Start output
>
> *******************************************
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 2.21/01 14 January 1999 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
> *******************************************
>
> CINT/ROOT C/C++ Interpreter version 5.13.83, Dec 2 1998
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] TNode Node2[10];
> root [1] TBRIK objects[10];
> root [2] objects[5] = new TBRIK("WCHA","WCHA","mat15",5,5,5);
> root [3] TMaterial mat = new TMaterial("mat15","AIR",14.61,7.3,0.1205000E-02);
> root [4] Node2[3] = new TNode("WCHA1","WCHA1","WCHA",0,0,0,0);
>
> *** Break *** segmentation violation
>
> // end output
>
> any ideas? If I use the actual object in TNode (ie -
> TNode("WCHA1","WCHA1",objects[5],0,0,0,0) this doesn't occur.
>
> This is with 2.21/01 on a Redhat System with egcs
>
> Mike
>
>