[kw-pm] Re: windows GTK perl problem

Daniel R. Allen daniel at coder.com
Sun Oct 3 09:46:13 CDT 2004


I'm posting your question to our local perl mongers list; if anybody is
experienced with GTK and windows perl, they might be able to help.

-Daniel
--
http://kw.pm.org/ - Kitchener-Waterloo Perl Mongers -         da at kw.pm.org
http://coder.com/ - Prescient Code Solutions - (519) 575-3733 da at coder.com

PremRaja wrote:

> Hi,
> i have installed perl in my windows 2000 system.
> when i execute the program using " c:\usr\expts\perl one.pl ", it is running without any error.
> but when i use " c:\usr\expts\perlapp one.pl ", i am getting the one.exe.
> when i run the one.exe file, runtime error is comming
>
> the error is :
> GLib-GObject-CRITICAL **: file gobject.c: line 1350 (g_object_set_qdata_full): assertion `quark > 0' failed at one1.pl line 13.
> GLib-GObject-CRITICAL **: file gobject.c: line 1350 (g_object_set_qdata_full): assertion `quark > 0' failed at one1.pl line 15.
> Can't locate object method "signal_connect" via package "Gtk2::Button" at one1.pl line 16.
>
> the program is :
> use Gtk2 '-init';
>
> sub hello
> {
>        my ($widget, $window) = @_;
>         print "Hello, World\n";
>
>         $window->destroy;
> }
>
> $window = Gtk2::Window->new('toplevel');
> $button = Gtk2::Button->new("Hello World");
> $button->signal_connect(clicked => \&hello, $window);
> $window->add($button);
> $button->show;
> $window->show;
> Gtk2->main;
> 0;
>
> give me some suggesion to solve this problem. pls give it as soon as possible.
>
> Regards,
> Premraja



More information about the kw-pm mailing list