Re: glade2 / libglade broken ?

Sebastien Delestaing <[email protected]>
Newsgroups gmane.comp.gnome.ximian.snapshots
Message-ID <[email protected]>
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 <[email protected]>
> 
> 
> _______________________________________________
> gnome-2-snapshots maillist  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/gnome-2-snapshots
-- 
Sebastien Delestaing <[email protected]>


_______________________________________________
gnome-2-snapshots maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gnome-2-snapshots
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.