|
From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2007-04-05 19:45:50
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=426729 gnome-perl | Gtk2 | Ver: unspecified Summary: -threads-init disables gtk2-perl Product: gnome-perl Version: unspecified Platform: Other OS/Version: Windows Status: UNCONFIRMED Severity: blocker Priority: Normal Component: Gtk2 AssignedTo: gtk...@li... ReportedBy: jz...@vt... QAContact: gtk...@li... GNOME version: Unspecified GNOME milestone: Unspecified The following simple program does not run, it displays a window but does not draw anything in the window: #!/usr/bin/perl use Gtk2 qw( -init -threads-init ); die "Glib::Object thread safety failed" unless Glib::Object->set_threadsafe(1); my $win = Gtk2::Window->new(); my $but = Gtk2::Button->new("Start Thread"); $win->add($but); $win->show_all; # Start the main loop. Gtk2->main; exit 1; If you remove the "-threads-init" line then the program works fine. I also tried using the Gtk2::Gdk::Threads->init and Gtk2->init calls instead; the results are the same. I have the latest version of everything: ActiveState Perl 5.8.8-820 Gtk2.pm 1.141 Glib.pm 1.142 Cairo.pm 1.021 ExtUtils-Depends.pm 0.205 ExtUtils-PkgConfig.pm 1.07 Gtk2 2.10.11 (windows runtime from http://gladewin32.sourceforge.net/modules/wfdownloads/) On a fresh install of Windows XP SP2 (I did install older versions of the packages which I removed and upgraded to the most recent versions to test for this bug report). Of course this program does nothing useful, but it is stripped down from a larger more complicated program where I am using threads. Notice that this program doesn't use threads, it simply initializes them. My large program has exactly the same behavior and it does use threads. Thanks for all your hard work! Jason -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=426729. |