Re: [ROOT] Segfault in TPostscript constructor?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jan 21 2002 - 15:03:10 MET


Hi Thomas,

This happens when you create a TPostScript object before creating a TCanvas.
Simply create a Tcanvas before this statement.
The fix is already in the CVS source.

Rene Brun

Thomas Kluge wrote:
> 
> Hi,
> 
> since ROOT 3.02/06 I suffer from this:
> 
> ---------------------
> [h1aac02] ~ $ root
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   3.02/06  14 December 2001   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
> 
> FreeType Engine v1.x used to render TrueType fonts.
> Compiled for linuxsuse6.
> 
> CINT/ROOT C/C++ Interpreter version 5.15.21, Dec 8 2001
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0]  TPostScript *ps = new TPostScript("test.ps");
> 
>  *** Break *** segmentation violation
> Root >
> ---------------------
> 
> What's wrong?
> 
> Best regards,
> 
> Thomas
> 
> --
> ------------------------------------------------------------------
> Thomas Kluge                  Telephon:   +49(40)8998-4551
> DESY, 1d33                    Telefax:    +49(40)8998-4385
> Notkestr. 85                  GSM:        +49(179)2243365
> D-22607 Hamburg ------------- e-mail:     thomas.kluge@desy.de ---



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:39 MET