Le samedi 07 août 2010 à 10:25 +0100, Abderrahim Kitouni a écrit : > Hi, < في ج، 06-08-2010 عند 13:13 -0500 ، كتب Stéphane Maniaci: > > Hi, > > > > I'm having some weird segfaults when I try to acceed the "size" > > properties of my Gee.ArrayList. GDB says : > The only reason I know for a vala program to segfault (other than buggy > bindings, but this isn't the case here) is calling a virtual method (or > property) of an invalid (usually null) reference. > > > Program received signal SIGSEGV, Segmentation fault. > > 0x00121014 in gee_collection_get_size (self=0x7478654e) at > > collection.c:212 > > 212 return GEE_COLLECTION_GET_INTERFACE (self)->get_size > > (self); > > > > (gdb) bt > > #0 0x00121014 in gee_collection_get_size (self=0x7478654e) at > > collection.c:212 > > This seems really weird since self isn't null, but it has probably been > freed (shouldn't happen if you don't do weird things). It's probably a > bug, do you have a little program to reproduce it? > > > Regards, > Abderrahim >
Thanks for the help! I don't think I'm doing anything weird with my code, somebody please tell me if I'm coding something wrong. My (pet) project is hosted here : http://github.com/stephh/Impresario. Regards, − Stéphane. _______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
