creating C++ projects with glade
Hello,
I tried to create a simple C++ project with glade.
However, for some reason (perhaps my fault) some of the widgets didn't
get displayed if I saved the project and built the code.
In order to try and work, I created a new dialog box.
Now the code segfaults:
(gdb) r
Starting program: /home/bam/cvswork/atcsim/src/display/src/./display
[New Thread 1024 (LWP 26184)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 26184)]
0x4035a8cc in Gtk::ButtonBox::set_spacing () from /usr/lib/libgtkmm-1.2.so.0
(gdb) q
The program is running. Exit anyway? (y or n) n
Not confirmed.
(gdb) t
[Current thread is 1 (Thread 1024 (LWP 26184))]
(gdb) bt
#0 0x4035a8cc in Gtk::ButtonBox::set_spacing () from /usr/lib/libgtkmm-1.2.so.0
#1 0x08051a2b in height_glade::height_glade (this=0x80beb60, __in_chrg=0) at height_glade.cc:28
#2 0x08052d0f in height::height (this=0x80beb60, __in_chrg=1) at display.cc:27
#3 0x0804d80d in main (argc=1, argv=0xbffff9b4) at display.cc:27
#4 0x4074165f in __libc_start_main () from /lib/libc.so.6
(gdb)
where "height" is the name I gave the dialog box.
So now I have two problems:
1. widgets wont display in main window. I created this window with
"Gnome Application Window". It is completely blank, and doesn't have
the menus, toolbar, or message bar at the bottom.
2. segmentation fault when trying to display a basic "Gnome Dialog
box".
Are these my fault?
glades fault?
Or the fault of one or more libraries involved?
I suspect that (2) is libgtkmm1.2's fault, not sure about (1).
--
Brian May <bam@debian.org>
Reply to: