Re: Creating new GObject

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

 



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!)

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux