Hi David, New options were added to TStyle in the latest versions. I forgot one case in the Copy function. Instead of using the Copy functions, I strongly suggest to always use the Clone function, like: TStyle *Mystyle=(TStyle*)gStyle->Clone(); Mystyle->SetName("Mystyle");,//etc Rene Brun On Wed, 19 Jan 2000, David d'Enterria wrote: > Hello all, > > I'm my rootlogon.C I have defined: > > TStyle *Mystyle= new TStyle("Mystyle","Mystyle1"); > Mystyle->Set....(); > ... > gStyle->Copy(*Mystyle); // <----------- > ... > > This last line produces a segmentation violation. > The same instruction produced no error in former Root version 2.23/08 > (Linux). > > What has been changed in TStyle::Copy(TObject &obj) betwen both versions > ? > > Thanks again in advance, > > David d'Enterria > ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ > Groupe Photons Subatech > http://www-subatech.in2p3.fr/~photons/subatech/ > mailto:enterria@in2p3.fr phone: +33.2.51.85.85.60 > ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬ > Grup Física Radiacions UAB http://cc.uab.es/~iffr2/ > mailto:d.enterria@cc.uab.es phone: +3493.581.13.64 > > "In science, there is only physics; all the rest is stamp collecting", > Ernest Rutherford >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:17 MET