Re: glade2 / libglade broken ?



Forget it, it's solved now. If anybody is interested:
you have to call gnome_program_init before glade_xml_new or it will
segfaults. The libglade doc does not mention it and nobody cares
pointing you the obvious. Moreover it was working 2 weeks ago. anyway.
back to work.


Le dim 04/08/2002 à 22:46, Sebastien Delestaing a écrit :
> Hi,
> 
> I have a problem with glade-2/libglade:
> 
> - create a new gnome project in glade
> - add a gnome app window
> - save the project "test.glade"
> 
> - then I do the following:
> 
> int main(int argc, char *argv[])
> {
> 	int i, j;
> 	GladeXML *xml;
> 
> 	gtk_init(&argc, &argv);
> 	glade_init();
> 
> 	xml = glade_xml_new("glade//test.glade", NULL, NULL);
> }
> 
> and it just segfaults after a couple of warnings:
> 
> (gweled_main:2308): GLib-GObject-WARNING **: invalid cast from (NULL)
> pointer to `GObject'
> 
> (gweled_main:2308): GLib-GObject-CRITICAL **: file gobject.c: line 972
> (g_object_get): assertion `G_IS_OBJECT (object)' failed
> 
> (gweled_main:2308): GLib-GObject-WARNING **: invalid cast from (NULL)
> pointer to `GObject'
> 
> (gweled_main:2308): GLib-GObject-CRITICAL **: file gobject.c: line 972
> (g_object_get): assertion `G_IS_OBJECT (object)' failed
> Segmentation fault
> 
> what puzzles me is that it was working before today RC snapshots. I'm
> still not sure that it's a glade bug though. Maybe I'm using it the
> wrong way. Any ideas ?
> 
> Thank you for any help.
> 
> Seb
> 
> -- 
> Sebastien Delestaing <sebastien delestaing wanadoo fr>
> 
> 
> _______________________________________________
> gnome-2-snapshots maillist  -  gnome-2-snapshots ximian com
> http://lists.ximian.com/mailman/listinfo/gnome-2-snapshots
-- 
Sebastien Delestaing <sebastien delestaing wanadoo fr>




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