Re: new TColor in rootlogon.C

From: Jan Hartmann <roottalk_at_krampy.de>
Date: Wed, 24 Sep 2008 11:25:08 +0200


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:25:27 CEST

This archive was generated by hypermail 2.2.0 : Wed Sep 24 2008 - 17:50:01 CEST