Re: Creating new GObject
- From: Peter Clifton <pcjc2 cam ac uk>
- To: AlannY <m alanny ru>
- Cc: gtk-list gnome org
- Subject: Re: Creating new GObject
- Date: Wed, 30 Apr 2008 17:34:45 +0100
On Wed, 2008-04-30 at 20:16 +0400, AlannY wrote:
> Hello.
>
> I'm writing an Object from GObject. But when running my dummy app prints
> errors and nothing happens ;-)
>
> Can someone look at my sources (they are dummy) and fix this problem
> (sources attached). It's a dummy Point (dot) class, nothing more ;-)
>
> Error messages:
>
> (process:8753): GLib-GObject-CRITICAL **: gtype.c:2242: initialization
> assertion failed, use IA__g_type_init() prior to this function
The error message is giving you the hint you need..
The g_type system needs to be initialised before you can use it, add a
call to:
g_type_init ();
Before your point_new () call, and it should be a lot happier.
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]