The following code
use strict;
use Win32::GUI;
my $window = Win32::GUI::Window->new (
-width => 200,
-height => 200,
-text => "Hello",
-name => "window1",
);
my $font = Win32::GUI::Font->new (
-size => 20,
-name => "Comic Sans MS",
);
my $lable = $window->AddLabel(
-text => "Hello",
-font => $font,
-foreground => [0, 0, 255],
);
$window->Show ();
Win32::GUI:
sub window1_Terminate {
return -1;
}
produce the following error
c:\perlcode\hello.pl
Hello
The instruction at "0x77c4213b" referenced memory at "0x00000000". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to bebug the program
Could someone knows where the mistake could be?
i just made a format and install perl and the appropriate modules with ppm.
Does this has to do with the module Win::Gui or could be a hardware problem?