Re: [ROOT] Unable to call methods in GUI constructor!

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Sun Feb 16 2003 - 15:47:43 MET


Hi Christian and Fons,

I just tried it and Christian's script doesn't work neither on MacOSX
However, if I replace the line 321 :

this->Test(1);

simply by

Test(1)

which is usual, everything works fine. So maybe there is an interpreter
issue here, which is not limited to GUI. But I'm not able to investigate
more. Hope it helps.

Cheers

Damir

=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr

On Sun, 16 Feb 2003, Fons Rademakers wrote:

> Hi Christian,.
> 
>   this might very well be a 10.1 problem. I have this week no access
> to my Mac so I can not verify the behaviour on Mac OS X 10.2. Maybe Damir
> can try?
> 
> Cheers, Fons.
> 
> 
> 
> On Sat, Feb 15, 2003 at 06:33:11PM +0100, cstrato wrote:
> > Dear Rooters
> > 
> > The enclosed macro ".x mygui.C" contains two classes,
> > called MyFrame and SubFrame.
> > 
> > In the constructor of MyFrame I am able to call methods,
> > however, in the constructor of SubFrame I am unable to
> > call any method. Even calling the simple method "Test(1)"
> > (see line 321) causes ROOT to crash with:
> > 
> > root [7] .x mygui.C
> > ---TEST - 1
> >   *** Break *** segmentation violation
> > Root > Function mygui() busy flag cleared
> > Function MyFrame() busy flag cleared
> > Function CreateShutterFrames() busy flag cleared
> > Function SubFrame() busy flag cleared
> > Function Test() busy flag cleared
> > 
> > Can anybody tell me, why I am not able to call a
> > method in the SubFrame constructor??
> > 
> > Note: Yesterday, I could run a similar macro in root
> > for about 50 times without problems, until root finally
> > crashed with the error described above. Since then, it
> > is no longer possible to call a method from the constructor.
> > 
> > I am using root 3.05/02 on MacOS X 10.1.2
> > 
> > Thank you in advance.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET