Hi Vincent,
This is a side effect of the Root modularisation in 2.23.
The TGeometry object is not created anymore by the TROOT constructor.
The creation of objects such as THelix, TBRIK, etc assume that a TGeometry
object had already been created when creating a TRotMatrix object.
I have now protected the TRotMatrix constructors to automatically
initialize the TGeometry default object if no TGeometry object
exists at this point.
If you add the statement
new TGeometry();
before creating the THelix object, the example will work OK.
Rene Brun
On Mon, 7 Feb 2000, Vincent Colin de Verdiere wrote:
> I have not be abble to use the THelix class. If I try the example given in
> the documentation:
> // c1 = new TCanvas("c1");
> // TView *view = new TView(1);
> // view->SetRange(-1,-1,-1,1,1,1);
> // THelix *helix = new THelix(0.0, 0.0, 0.0, 1.0, 0.0, 0.3, 10.0);
> I get a "*** Break *** segmentation violation".
>
> anyone can help me ?
>
> -- Vincent
>
> Vincent Colin de Verdiere (vincent.colin.de.verdiere@cern.ch)
> at work: CERN, division EP, Office 12-1-014, CH - 1211 Geneva 23
> tel: (+41) 22 76 72839 or 74872, fax: (+41) 22 767 9075
>
>
>
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:18 MET