RE: resizing tables with widget and unref



Hi folks,

> > GDB reports this:
> > 
> > Program received signal SIGSEGV, Segmentation fault.
> > 0xef738908 in gtk_type_check_object_cast (type_object=0xefffe118,
> > cast_type=39701) at gtktypeutils.c:624
> > 
> > Occurs on line 624 of gtk/gtktypeutils.c:
> > 
> > if (!type_object->klass)
> > 
> 
> Get a full backtrace, so you can tell where in your program it
> happens.

Program received signal SIGSEGV, Segmentation fault.
0xef738908 in gtk_type_check_object_cast (type_object=0xefffe118,
cast_type=39701) at gtktypeutils.c:624
(xxgdb) backtrace
#0  0xef738908 in gtk_type_check_object_cast (type_object=0xefffe118,
cast_type=39701) at gtktypeutils.c:624
#1  0x13278 in remove_list_from_panel (widget=0x54698, main_vbox=0xefffe118)
at rwaves-2.c:127
#2  0xef6c1e48 in gtk_marshal_NONE__NONE (object=0x54698, func=0x13254
<remove_list_from_panel>, func_data=0xefffe118, args=0xefffe838) at
gtkmarshal.c:312
#3  0xef703a90 in gtk_handlers_run (handlers=0x3b610, signal=0xefffe798,
object=0x54698, params=0xefffe838, after=0) at gtksignal.c:1917
#4  0xef70296c in gtk_signal_real_emit (object=0x54698, signal_id=1,
params=0xefffe838) at gtksignal.c:1477
#5  0xef6ff9cc in gtk_signal_emit (object=0x54698, signal_id=1) at
gtksignal.c:552
#6  0xef6da460 in gtk_object_shutdown (object=0x54698) at gtkobject.c:255
#7  0xef7508b8 in gtk_widget_shutdown (object=0x54698) at gtkwidget.c:4386
#8  0xef754850 in gtk_window_shutdown (object=0x54698) at gtkwindow.c:656
#9  0xef6da3e0 in gtk_object_destroy (object=0x54698) at gtkobject.c:246
#10 0xef74549c in gtk_widget_destroy (widget=0x54698) at gtkwidget.c:1388
#11 0xef6c07c0 in gtk_main_do_event (event=0x4ffd0) at gtkmain.c:696
#12 0xef5ca5f8 in gdk_event_dispatch (source_data=0x4ffd0,
current_time=0xefffef78, user_data=0x0) at gdkevents.c:2129
#13 0xef5460d0 in g_main_dispatch (dispatch_time=0xefffef78) at gmain.c:656
#14 0xef54696c in g_main_iterate (block=-279533716, dispatch=1) at
gmain.c:877
#15 0xef546b80 in g_main_run (loop=0x4b888) at gmain.c:935
#16 0xef6c0094 in gtk_main () at gtkmain.c:476
#17 0x13dd4 in main (argc=1, argv=0xeffff15c) at rwaves-2.c:262

Looks like something somewhere is a bit broke in these lines of code then:

static void remove_list_from_panel(GtkWidget *widget, GtkWidget *main_vbox)
{
  gtk_container_remove(GTK_CONTAINER(main_vbox), remove_list);
}

static void remove_panel()
{
  gtk_signal_connect(GTK_OBJECT(remove_panel_window), "destroy",
GTK_SIGNAL_FUNC(remove_list_from_panel), &main_vbox);
}

Does this help?

Rich




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