Re: Glib assertion failed messages
- From: Emmanuele Bassi <ebassi gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Glib assertion failed messages
- Date: Tue, 05 Jun 2007 15:40:15 +0100
On Tue, 2007-06-05 at 16:24 +0200, Joao Moreira wrote:
Hi,
I have a very simple program that uses glib (indirectly). Actually I only define
a GError variable. I'm getting the following messages when I run it :
(process:3085): GLib-GObject-CRITICAL **: gtype.c:2240: initialization assertion failed, use
IA__g_type_init() prior to this function
(process:3085): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
Although it says CRITICAL, the program does seem to run... what is wrong here ?
you should read the error message: it tells you what failed.
anyway, you are trying to use the GLib type system without having
initialised the type system with g_type_init(). you should call that
function before using types provided by GObject.
ciao,
Emmanuele.
--
Emmanuele Bassi, E: ebassi gmail com
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]