sam_bakki has asked for the wisdom of the Perl Monks concerning the following question:
Hello Great Monks,
I have upgraded Glib module version 1.261 from version 1.241. I am on Windows 7 x64 using activeperl 5.14 32 bit version.
I used http://www.sisyphusion.tk/ repository to update Gtk2 and its dependencies.
After I upgraded to latest Glib 1.261, My Gtk2 perl application reports following error in a dialog box when I quit the application,
-----------------------
" This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."
-------------------------------
The below code can reproduce the issue
use strict; use warnings; use Gtk2 '-init'; my $window = Gtk2::Window->new('toplevel'); $window->set_title("Hello World!"); my $button = Gtk2::Button->new("Press me"); $button->signal_connect(clicked => sub { print "Hello again - the butt +on was pressed\n"; }); $window->signal_connect(destroy => sub { print "Bye"; Gtk2->main_quit( +);}); $window->add($button); $window->show_all; Gtk2->main; exit 0;
I face the same issue in Glib 1.260 also. So I have downgrade to Glib 1.241 everything works fine. I am currently using Glib 1.241.
Any monk faced the same issue?
How to solve this?
Note: In linux, I use latest Glib , I did not face this issue.
Update
I have removed all the Gtk2 + dependent modules and install them in the following order,
- Glib (1.261)
- Pango (1.223)
- Cairo (1.100)
- Cairo-GObject (1.001)
- Gtk2 (1.244)
This solves the issue. Thanks a lot to Anonymous Monk and zentara
Thanks & Regards,
Bakkiaraj M
My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Issue with Glib1.261 & 1.260
by zentara (Archbishop) on Sep 04, 2012 at 11:17 UTC | |
by sam_bakki (Pilgrim) on Sep 04, 2012 at 11:24 UTC | |
by zentara (Archbishop) on Sep 04, 2012 at 11:31 UTC | |
by sam_bakki (Pilgrim) on Sep 04, 2012 at 11:28 UTC | |
Re: Issue with Glib1.261 & 1.260
by Anonymous Monk on Sep 04, 2012 at 09:34 UTC | |
by sam_bakki (Pilgrim) on Sep 04, 2012 at 10:34 UTC | |
by Anonymous Monk on Sep 04, 2012 at 11:22 UTC | |
by sam_bakki (Pilgrim) on Sep 04, 2012 at 11:27 UTC |