[Gtk-sharp-list] Disposing a Gtk.FileSelection causes a crash
Martin Baulig
martin@gnome.org
11 Mar 2003 14:14:07 +0100
Hi guys,
am I doing something wrong or is the following C program supposed to work:
====
#include <glib.h>
#include <gtk/gtkfilesel.h>
int
main (int argc, char *argv [])
{
GtkFileSelection *fs;
gtk_init (&argc, &argv);
fs = gtk_file_selection_new ("test");
g_object_unref (fs);
}
=====
I'm getting
====
(test-filesel:23975): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `<invalid>'
(test-filesel:23975): GLib-GObject-CRITICAL **: file gsignal.c: line 1732 (g_signal_handlers_destroy): assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Segmentation fault
====
The same happens when the Gtk.FileSelection is garbage collected.
--
Martin Baulig
martin@gnome.org
martin@ximian.com