Hi Selim,
I cannot reproduce this problem. Which version are you using ?
Could you send me a small & working macro to show your problem ?
Rene Brun
Selim Issever wrote:
>
> Hi,..
>
> I've the following following member function of a class called moBase:
>
> void moBase::test() {
> cout << "Test start:" << endl;
>
> static TH2C* a = 0;
> if(a) delete a;
>
> a = new TH2C("Kirk", "", 250, 0, 2, 250, 0, 3);
> a->SetXTitle("X");
> a->SetYTitle("Y");
> a->Draw();
>
> cout << "Test is successful!" << endl;
> }
>
> I compile the whole thing,
> create my own rootapplication,
> start it,
> in cint create an object m of type mo (inherits from moBase) and then:
> m.test()
>
> This gives me a histogram with the right sizes but with no x axis title and
> with "X" as y axis title.
>
> Strange enough: if I now type in
> Kirk->SetXTitle("aaa")
> I get, what I want: a title at the x axis.
>
> If I play all the game in mo::test() from within cint, it works too?!?,.. Do
> you think, there is something strange with my objects? or is it real? do you
> know, how I can get what I want to get?
>
> Thanks a lot,
> Selim
>
> --
> Selim Issever | Tel: 040 8998-2843 +---- I'd horsewhip you --------
> DESY-F15 | Fax: 040 8998-4033 +--------- if I had a horse. ---
> Notkestr. 85 | selim.issever@desy.de +--------------- Groucho Marx --
> 22603 Hamburg/Germany | http://www.physik.uni-dortmund.de/~issevers
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:42 MET