Glib-2.32.x and threading



Hi

Not sure if anybody else is seeing this or if it is a Win32 only issue, but with a gtk+-2.24.10 stack 
compiled against glib-2.32.3 (AS Perl with Gtk2-Perl fully up to date, still on cairo-1.10.2, as 1.12.2 seems 
to have issues on Win32), as soon as I do:

Gtk2::Gdk::Threads->init ();
Gtk2->init () or die 'Gtk2->init () failed';
Glib::Object->set_threadsafe (TRUE) or die 'Glib::Object->set_threadsafe () failed';
Gtk2::Gdk::Threads->enter ();

the application locks up a few seconds after you start it. This is even without "use threads;" or creating 
any threads.
Mostly the same build, but with glib-2.28.8 and lower atk, gdk-pixbuf and pango that do not require 
glib-2.31+, this works fine.

The C threads example from the GTK+ FAQ works fine, so it seems to be an issue with Gtk2-Perl and later 
glib's.

Any insight or suggestions to try to track it down will be appreciated.


Regards,

Martin



Vrywaringsklousule / Disclaimer:  http://www.nwu.ac.za/it/gov-man/disclaimer.html 




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