RE: new TColor in rootlogon.C

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Wed, 24 Sep 2008 11:53:27 +0200


I have tried what you are suggestting here and I got no error messages. Note that the fix I mentionned before was done on July 2nd and 5.20 is from June 25th so the fix is not in. Only 5.21 (from August 8th) has it.

Cheers, O.Couet

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Jan Hartmann
Sent: Wednesday, September 24, 2008 11:25 AM To: roottalk_at_root.cern.ch
Cc: Rene Brun
Subject: Re: [ROOT] new TColor in rootlogon.C

OK I have done some further testing and found out that it has to do something
with my .rootrc.
I found the following line to be the cause of the problem:

Rint.Logon: $(HOME)/.rootlogon.C

Somehow this caused my .rootlogon.C to get executed twice. If I remove this line from my .rootrc, everything works fine. I have done this with root 5.18 and 5.20, linux.

Cheers,
Jan Hartmann

Am Mittwoch, 24. September 2008 schrieb Rene Brun:
> I cannot reproduce this problem.
> Which version of ROOT, OS ?
> What else do you have in your rootlogon.C file?
>
> Rene Brun
>
> roottalk_at_krampy.de wrote:
> > Hi,
> >
> > I am trying to define some colors for later use in my rootlogon.C:
> >
> > new TColor(1009, 0.986885,0.983607,0.991803, "");
> > new TColor(1010, 0.973770,0.967213,0.983607, "");
> > new TColor(1011, 0.960656,0.950820,0.975410, "");
> > and many more.....
> >
> > Problem is: for each color I get a warning:
> > Warning in <TColor::TColor>: color 1009 already defined
> > Warning in <TColor::TColor>: color 1010 already defined
> > Warning in <TColor::TColor>: color 1011 already defined
> > and so on.
> >
> > If I remove these lines from my rootlogon.C and just type them in
right
> > after starting root I don't get any of these warnings.
> > I also have tried using other numbers for the colors, it does not
help.
> >
> > I did not notice any problem yet, everything seems to work fine even
with
> > those warnings, but it is kind of annoying to get more than 200
lines of
> > warnings every time I start root. What am I doing wrong?
> >
> > Cheers,
> > Jan Hartmann
Received on Wed Sep 24 2008 - 11:53:38 CEST

This archive was generated by hypermail 2.2.0 : Wed Sep 24 2008 - 23:50:02 CEST