Re: [Vala] g_thread_init() must be called before gdk_threads_init()



Hi Thijs,

On Sun, 2008-05-18 at 20:22 +0200, Thijs Vermeir wrote:
But if I execute the application I get this error:
GLIB ERROR ** Gdk - g_thread_init() must be called before gdk_threads_init()

But I can't find how to call g_thread_init ().
How can I solve this problem?

Use valac --thread to build multi-threaded applications, this will take
care of calling g_thread_init ().

Jürg




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