Re: Problem with dbus in custom application based on Cheese sourcecode



Jostein Austvik Jacobsen wrote:
Hi

Hi

your error looks quite simple... You have to initialize the g_type before using any of the gobject stuff.

here some information:

http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#g-type-init


hopefully this helps...

cheers
felix


The output I get is this:

$ ./cheese

(process:22856): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.18.2/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function

(process:22856): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

(process:22856): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed



Using gdb, I find that the error lies on line 131 (originally on line 94 in cheese-dbus.c) which is the one that says "server = g_object_new (CHEESE_TYPE_DBUS, NULL);"


Any idea what the problem is?

Regards
Jostein A. Jacobsen

------------------------------------------------------------------------

_______________________________________________
Cheese-list mailing list
Cheese-list gnome org
http://mail.gnome.org/mailman/listinfo/cheese-list



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