[Glade-users] segfault after widget destroy



Well... the full output is too long to paste, but the first screen of the
backtrace is this:

#0  0x4000b90c in _dl_map_object_deps () from /lib/ld-linux.so.2
#1  0x4000bbd0 in _dl_map_object_deps () from /lib/ld-linux.so.2
#2  0x403ac232 in g_type_free_instance () from /usr/lib/libgobject-2.0.so.0
#3  0x403995ce in g_object_class_list_properties ()
   from /usr/lib/libgobject-2.0.so.0
#4  0x4039970e in g_object_run_dispose () from /usr/lib/libgobject-2.0.so.0
#5  0x4010e2f9 in gtk_object_destroy () from /usr/lib/libgtk-x11-2.0.so.0
#6  0x401d22e5 in gtk_widget_destroy () from /usr/lib/libgtk-x11-2.0.so.0
#7  0x40068805 in gtk_box_set_child_packing ()
   from /usr/lib/libgtk-x11-2.0.so.0
#8  0x4009523e in gtk_container_foreach () from /usr/lib/libgtk-x11-2.0.so.0
#9  0x4009421e in gtk_container_class_list_child_properties ()
   from /usr/lib/libgtk-x11-2.0.so.0
#10 0x403a8212 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#11 0x40397d44 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#12 0x40397a92 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#13 0x403a7a59 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#14 0x403a6ec2 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#15 0x403a70d6 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#16 0x4010e3c5 in gtk_object_destroy () from /usr/lib/libgtk-x11-2.0.so.0

and it goes on until #91... :-/

Besides, i'm not freeing any window on my own, i'm just letting gtk deal wi=
th
the destroy event, should i do it myself? if so, how?

Should i connect the destroy event to the gtk_destroy_widget() callback?

I'm sorry for such a pain, but i have no clue on how to keep on with this.
Please tell me if you need more details about my program.
And thanks a lot.

Karla,
=20
What does gdb say before that one line?  Type traceback in gdb to see=20
what it says.  All I can think of, at the moment, is that you are=20
freeing the wrong window, but that doesn't seem likely.
=20
Cheers,
=20
=20
Rikke
=20
=20
On 2004.03.11 13:47, Karla Stenger wrote:
Hello,
=20
I'm working on an aplication where i use multiple windows, and am
actually
working on the "settings" window, so i create it and draw it when the
user hits
a button. That works ok, my problem is when that window receives the
destroy
event. At first i had the destroy event connected to
gtk_widget_destroy, which
seemed logical to do, but with or without this i stil have the same
problem.
After clicking on the X of the settings window i get segfault and gdb
says:
=20
0x4000b90c in _dl_map_object_deps () from /lib/ld-linux.so.2
=20
Any idea of what i could be doing wrong? Should i free() some widget
before
trying to destroy it?
=20
Thanks for any help you can give me.
Karla.
--
+-----------------------------+
| Karla  M=AA  Stenger  S=E1bat   |
| Pando . Canelones . Uruguay |
| kstenger montevideo com uy  |
+-----------------------------+
_______________________________________________
Glade-users maillist  -  Glade-users lists ximian com
http://lists.ximian.com/mailman/listinfo/glade-users
=20
=20
=20
=20


--=20
+-----------------------------+
| Karla  M=AA  Stenger  S=E1bat   |
| Pando . Canelones . Uruguay |
| kstenger montevideo com uy  |
+-----------------------------+




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