Re: new TColor in rootlogon.C

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 24 Sep 2008 08:31:23 +0200


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 - 08:32:02 CEST

This archive was generated by hypermail 2.2.0 : Sun Sep 28 2008 - 05:50:04 CEST