Re: g_type_query in gtk-win32



Here's a very simple program that illustrates the problem:-

When I add the missing semicolon, compile, and run the program, I get
a lot of error messages, the first (and most relevant) being:

(johne53-1.exe:2264): GLib-GObject-CRITICAL **: gtype.c:2458:
initialization assertion failed, use g_type_init() prior to this
function

When I do what the error message says and add a call to g_type_init(),
it works fine as far as I can see. base_query contains:

(gdb) p base_query
$1 = {type = 37258472, type_name = 0x2388590 "GnomeCanvas", class_size
= 464, instance_size = 312}

--tml



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