Ask a Question related to PERL Modules, Design and Development.
-
Robert James Kaes #1
Invalid Page Fault With Win32::GUI Under Win98
Hi All,
I'm trying to experiment with Win32::GUI using ActiveState Perl 5.8.4
(build 810) under Windows 98. I'm trying to follow the examples in the
Win32::GUI tutorial, but the first example in the tutorial is failing.
use Win32::GUI;
use strict;
use warnings;
my $main = Win32::GUI::Window->new(-name => "Main", -width => 110, -height => 100);
# This line is failing
$main->AddLabel(-text => "Hello, world");
$main->Show();
Win32::GUI::Dialog();
exit;
# terminate the message loop when the window is closed
sub Main_Terminate { -1 }
The AddLabel line is causing an illegal operation error with the
following message:
PERL caused an invalid page fault in
module MSVCRT.DLL at 0167:78002fc5.
I installed Win32::GUI using the PPM system. If I removed the AddLabel
line, the script runs and displays the empty window.
Has any one else experienced a problem like this? Is this a known
problem, with a known work-around? Does Win32::GUI just not work under
Windows 98? Thanks for any help you can provide.
-- Robert
--
Robert James Kaes --- Flarenet Inc. --- (519) 426-3782
[url]http://www.flarenet.com/consulting/[/url]
* Putting the Service Back in Internet Service Provider *
Robert James Kaes Guest
-
Invalid Page Fault in my precious ID file! HELP!
Using Indesign 2.0 (running WIN 98)I put together about 350 pages of text and graphics, and foolishly never backed it up. I work through a network,... -
ACRORD32 - Invalid Page Fault in module <unknown>
Similar, but not identical to, one of the FAQs, so not sure if solution is the same. Whenever I open a PDF, Acrobat 6.0 opens up, and Zone Alarm asks... -
Problem with Page Object (it is invalid)
I am moving an ASP application from NT to Win2003. I noticed that the "Page Object" DTC is shown in red. When I hover my cursor over the object... -
Invalid page error ADOBEWEB.DLL
Hello, am using photoshop elements with scanner canon D1250U2F and win98se and . I always get the message "PHOTOSHOPELEMENTS caused an ivalisd page... -
The viewstate is invalid for this page and might be corrupted
I don't know if it helps, but I get this message when viewing an aspx page from my Toshiba E750 pda. The first page comes up fine. I then logon... -
Matt Garrish #2
Re: Invalid Page Fault With Win32::GUI Under Win98
"Robert James Kaes" <rjkaes@flarenet.com> wrote in message
news:pan.2004.07.09.20.27.26.686362@flarenet.com.. .110, -height => 100);> Hi All,
> I'm trying to experiment with Win32::GUI using ActiveState Perl 5.8.4
> (build 810) under Windows 98. I'm trying to follow the examples in the
> Win32::GUI tutorial, but the first example in the tutorial is failing.
>
> use Win32::GUI;
> use strict;
> use warnings;
>
> my $main = Win32::GUI::Window->new(-name => "Main", -width =>You forgot to give the control a name:>
> # This line is failing
> $main->AddLabel(-text => "Hello, world");
$main->AddLabel(-text => "Hello, world",
-name => 'myLabel');
Should work when you make that correction.
Matt
Matt Garrish Guest
-
Matt Garrish #3
Re: Invalid Page Fault With Win32::GUI Under Win98
"Robert James Kaes" <rjkaes@flarenet.com> wrote in message
news:pan.2004.07.09.20.27.26.686362@flarenet.com.. .110, -height => 100);> Hi All,
> I'm trying to experiment with Win32::GUI using ActiveState Perl 5.8.4
> (build 810) under Windows 98. I'm trying to follow the examples in the
> Win32::GUI tutorial, but the first example in the tutorial is failing.
>
> use Win32::GUI;
> use strict;
> use warnings;
>
> my $main = Win32::GUI::Window->new(-name => "Main", -width =>>
> # This line is failing
> $main->AddLabel(-text => "Hello, world");
Please don't post to two groups and set the followup to only one; it's
really not a nice thing to do. You'll catch people (like me) unaware at
times and making me post another message is almost enough to get you
ignored.
You forgot to give the control a name:
$main->AddLabel(-text => "Hello, world",
-name => 'myLabel');
Should work when you make that correction.
Matt
Matt Garrish Guest



Reply With Quote

