[ROOT] ROOT Gui question

From: Michal Lijowski (michal@cvu.wustl.edu)
Date: Mon Apr 28 2003 - 23:43:58 MEST


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



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