Errors creating GdkPixbuf



Im getting errors when trying to create a GdkPixbuf using:

GdkPixbuf* unviewedicon = gdk_pixbuf_new_from_file("/home/andrew/txe2mdr/unviewedicon.png", NULL);

When it runs it spews out:

(process:2153): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.24.0/gobject/gtype.c:2706: You forgot to call g_type_init()

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

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


before throwing a segmentation fault.

The path is accessible from the programs current working directory. If I give it a path which doesnt exist then it doesnt throw any errors.

Any suggestions please?

Thanks
Andrew


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