Sorry disturbing, I found out the answer myself.

g_type_init() has to be done.

Yours faithfully,

Alvis Koon

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, July 25, 2006 4:23 PM
To: maemo-developers@maemo.org
Subject: [maemo-developers] libebook

Dear all,

I am trying to use the EDS in my program.

ESourceList *slist;

if (! e_book_get_addressbooks (&slist, NULL) ) {
  printf("Fail to get address book\n");
}

The program compiles but quit itself running the e_book_get_addressbooks().
The error message is:
GLIB CRITICAL ** GLib-GObject - gtype.c : initialization assertion failed, use 
IA__g_type_init() prior to this function
GLIB CRITICAL ** GLib-GObject - g_object_new: assertion `G_TYPE_IS_OBJECT 
(object_type)' failed
GLIB CRITICAL ** Glib-GObject - g_object_ref: assertion `G_IS_OBJECT (object)' 
failed

Please help, and thanks in advance.

Alvis Koon
Software Engineer
 
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to