ibanix has asked for the wisdom of the Perl Monks concerning the following question:
When I run this script, Windows informs me that perl.exe has "generated errors and will be closed by windows". If I reduce the code touse Win32::GUI; $main = Win32::GUI::Window->new( -name => 'Main', -width => 100, -height => 100, ); $main->AddLabel(-text => "Hello, world"); $main->Show(); Win32::GUI::Dialog(); sub Main_Terminate { -1; }
it "works" (generates a window which vanishes instantly). As soon as I add $main->AddLabel(-text => "Hello, world");, however, the error returns.use Win32::GUI; $main = Win32::GUI::Window->new( -name => 'Main', -width => 100, -height => 100, ); $main->Show();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::GUI crashes perl?
by dree (Monsignor) on Dec 01, 2002 at 22:42 UTC | |
by ibanix (Hermit) on Dec 01, 2002 at 23:55 UTC | |
|
Re: Win32::GUI crashes perl?
by jjdraco (Scribe) on Dec 01, 2002 at 22:40 UTC |