Re: gtk--: Really weird thing!!



Hi there,

now I've run my crashing program "hello5" again in gdb and said "where" after
the crash:

(xxgdb) where
#0  gtk_signal_emit_by_name (object=0x73656400, name=0xbffff65c
"è÷ÿ¿¨&\a@\\öÿ¿Àª\006\b\214·\a@ì&\a@\\öÿ¿ñ&\a@\\öÿ¿ú&\a@\\öÿ¿ÿ&\a@\\öÿ¿\b'\a@\\ö
ÿ¿\f'\a@\\öÿ¿\022'\a@\\öÿ¿\032'\a@\\öÿ¿$'\a@\\öÿ¿)'\a@\\öÿ¿4'\a@\\öÿ¿A'\a@\\öÿ¿N
'\a@\\öÿ¿\\'\a@\\öÿ¿j'\a@\\öÿ¿p'\a@\\öÿ¿\203'\a@\\öÿ¿\230'\a@\\öÿ¿¬'\a@\\öÿ¿¹'\a
@\\öÿ¿Ç'\a@\\öÿ¿Ô'\a@\\öÿ¿ä'\a@"...) at gtksignal.c:360
#1  0x804a34c in Signal_proxy0<void, Gtk_Widget>::operator() (this=0xbffff6fc)
at /usr/local/include/gtk--sig.h:1191
#2  0x804a6aa in ColorButton::test_cb (this=0xbffff100) at hello5.cc:44
#3  0x804af90 in Slot<void, ColorButton>::call (this=0x8072138) at
/usr/local/include/gtk--sig.h:463
#4  0x804a4b1 in Slot<void, ColorButton>::callback (s=0x8072138) at
/usr/local/include/gtk--sig.h:464
#5  0x400cefbd in gtk_signal_default_marshaller (object=0x80707a8,
func=0x804a4a0 <Slot<void, ColorButton>::callback(_GtkWidget *, Slot<void,
ColorButton> *)>, func_data=0x8072138, params=0xbfffe4bc) at gtksignal.c:849
#6  0x400cfadc in gtk_handlers_run (handlers=0x80718ac, info=0xbfffe64c,
after=0) at gtksignal.c:1336
#7  0x400cf4b0 in gtk_signal_real_emit (object=0x80707a8, signal_type=59,
args=0xbfffe69c) at gtksignal.c:1057
#8  0x400ce291 in gtk_signal_emit (object=0x80707a8, signal_type=59) at
gtksignal.c:342
#9  0x40091c70 in gtk_button_clicked (button=0x80707a8) at gtkbutton.c:277
#10 0x400930c1 in gtk_real_button_released (button=0x80707a8) at gtkbutton.c:869
#11 0x40048086 in Gtk_Button::released_impl (this=0xbffff100) at
gtk--extra.cc:809
#12 0x400480c7 in Gtk_Button::released_callback (o=0x80707a8) at
gtk--extra.cc:813
#13 0x400cefbd in gtk_signal_default_marshaller (object=0x80707a8,
func=0x40048090 <Gtk_Button::released_callback(_GtkButton *)>, func_data=0x0,
params=0xbfffe71c) at gtksignal.c:849
#14 0x400cf45f in gtk_signal_real_emit (object=0x80707a8, signal_type=58,
args=0xbfffe8fc) at gtksignal.c:1043
#15 0x400ce291 in gtk_signal_emit (object=0x80707a8, signal_type=58) at
gtksignal.c:342
#16 0x40091c48 in gtk_button_released (button=0x80707a8) at gtkbutton.c:271
#17 0x40092a46 in gtk_button_button_release (widget=0x80707a8, event=0x8074ce0)
at gtkbutton.c:680
#18 0x400439dc in Gtk_Widget::button_release_event_impl (this=0xbffff100,
p1=0x8074ce0) at gtk--extra.cc:188
#19 0x40043a28 in Gtk_Widget::button_release_event_callback (o=0x80707a8,
p1=0x8074ce0) at gtk--extra.cc:192
#20 0x400ee3c1 in gtk_widget_marshal_signal_4 (object=0x80707a8,
func=0x400439ec <Gtk_Widget::button_release_event_callback(_GtkWidget *,
_GdkEventButton *)>, func_data=0x0, args=0xbfffe9a0) at gtkwidget.c:3240
#21 0x400cf4eb in gtk_signal_real_emit (object=0x80707a8, signal_type=20,
args=0xbfffeb80) at gtksignal.c:1070
#22 0x400ce291 in gtk_signal_emit (object=0x80707a8, signal_type=20) at
gtksignal.c:342
#23 0x400ec81e in gtk_widget_event (widget=0x80707a8, event=0x8074ce0) at
gtkwidget.c:1878
#24 0x400b4919 in gtk_propagate_event (widget=0x80707a8, event=0x8074ce0) at
gtkmain.c:1479
#25 0x400b37a4 in gtk_main_iteration_do (blocking=1 '\001') at gtkmain.c:570
#26 0x400b354f in gtk_main_iteration () at gtkmain.c:375
#27 0x400b33f9 in gtk_main () at gtkmain.c:305
#28 0x40069e81 in Gtk_Main::run (this=0xbffff804) at gtk--.h:1618
#29 0x8049f54 in main (argc=1, argv=0xbffff840) at hello5.cc:131
#30 0x8049bcb in ___crt_dummy__ ()

Now I hope this tells you something.

By the way, there seem to be some difficulties with deleting objects, too.
My colorbutton widget opens a Gtk_ColorSelectionDialog, and  when it's done
I hide() it and then delete it. But then it crashes, so I just don't delete
it anymore. But probably delete should work somehow, you don't want to keep
everything in memory because you needed it once...



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]