Hello, I'm just doing a test with gconf library. But a simple initializing of a GConfClient handle fails when I use gconf_client_get_default()
Here is the source: #include <gnome.h> #include <gconf/gconf-client.h> int main(void) { GConfClient *client; g_type_init(); client=gconf_client_get_default(); //The error occurs here return 0; } I make this source with this command: gcc gnome.c -o gnome `gnome-config --cflags --libs gnomeui` -lgconf-gtk-1 -lgobject-2.0 There is no problem during the compilation. But when I launch this application I get these errors: GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed. Gtk-WARNING **: gtk_type_create(): unknown parent type `21'. Gtk-CRITICAL **: file gtktypeutils.c: line 357 (gtk_type_new): assertion `node != NULL' failed. Gtk-WARNING **: invalid cast from (NULL) pointer to `(unknown)' Gtk-CRITICAL **: file gtkobject.c: line 1161 (gtk_object_ref): assertion `object != NULL' failed. Gtk-WARNING **: invalid cast from (NULL) pointer to `(unknown)' Gtk-CRITICAL **: file gtkobject.c: line 456 (gtk_object_sink): assertion `object != NULL' failed. I can't understand theses errors. Can you help me? Configuration: I'm using Debian etch with Gnome 2.10.2 Sincerely.... _______________________________________________ gconf-list mailing list gconf-list@gnome.org http://mail.gnome.org/mailman/listinfo/gconf-list