Re: [ROOT] ROOT Gui question

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu May 01 2003 - 16:53:13 MEST


Hi Michal,

  what is the error you get when running this program? A segv or
something like that? I don't see that from your debugger output. For me
the program runs and terminates fine when the size if given as 200,100,
except that all buttons overlap.

Cheers, Fons.



On Mon, 2003-04-28 at 23:43, Michal Lijowski wrote:
> I have been trying to get experience in using ROOT Gui classes using
> available
> examples. I have been doing this with ROOT 3.05/03 under RH Linux 9.0 and
> gcc 3.2.2.
> 
> While running the example provided by Fons
> (http://root.cern.ch/root/hepvis98/newgui.html)
> under the debugger I noticed difference after changing the parameters in
> the line
> 
> MyMainFrame mainWin(gClient->GetRoot(), 200, 220);
> 
> in file main.cxx.
> 
> When I change this line into
> 
> MyMainFrame mainWin(gClient->GetRoot(), 200, 100);
> 
> recompile all three files, set a breakpoint on this line, and step line by
> line
> I get the following output
> 
> Breakpoint 1, main (argc=1, argv=0xbffff2b4) at main.cxx:12
> 12          MyMainFrame mainWin(gClient->GetRoot(), 200, 100);
> (gdb) s
> 0x0804b731 in TGClient::GetRoot() const (this=0x881d488)
> (gdb) s
> Single stepping until exit from function _ZNK8TGClient7GetRootEv,
> which has no line number information.
> MyMainFrame (this=0xbffff160, p=0x88267f0, w=200, h=100) at
> MyMainFrame.cxx:8
> 
> When using the original values 200, 220 I am not getting this message.
> 
> Thank you and best regards,
> 
> 
>   Michal
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



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