Hello, At this point I am not getting any error. When I modified this program and set the size of the MainFrame to values of the certain aspect ratio (y size is smaller than x axis) I get segv error. I was wondering whether this error is related to the problem I described. If I don't define MyMainFrame as the class and define mainWin in the main program I don't get the quoted message whatever the size of the MainFrame. I will investigate this with a small program. Thank you and best regards, Michal -----Original Message----- From: Fons Rademakers [mailto:Fons.Rademakers@cern.ch] Sent: Thursday, May 01, 2003 9:53 AM To: Michal Lijowski Cc: roottalk@pcroot.cern.ch Subject: Re: [ROOT] ROOT Gui question 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