Click here to get back home

Invalid Page Fault With Win32::GUI Under Win98

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Invalid Page Fault With Win32::GUI Under Win98 Robert James Kaes 07-09-2004
Posted by Robert James Kaes on July 9, 2004, 5:27 pm
Please log in for more thread options
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
                 http://www.flarenet.com/consulting/
* Putting the Service Back in Internet Service Provider *



Posted by Matt Garrish on July 9, 2004, 7:14 pm
Please log in for more thread options

> 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");

You forgot to give the control a name:

$main->AddLabel(-text => "Hello, world",
-name => 'myLabel');

Should work when you make that correction.

Matt




Posted by Matt Garrish on July 9, 2004, 7:21 pm
Please log in for more thread options

> 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");


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





Similar ThreadsPosted
MSQL Error on a Win98 PC February 15, 2005, 5:02 pm
Sending "page up" and "page down" character problem. September 7, 2004, 1:59 pm
Invalid value for shared scalar June 14, 2005, 1:57 pm
invalid COMMPROP block length= 100...... November 16, 2005, 8:21 am
Invalid signature errors, CPAN, gpg August 22, 2006, 11:56 am
Segmentation Fault with Gtk2 August 10, 2005, 3:10 pm
Segmentation fault with perl 5.8.8 July 11, 2006, 6:03 am
fault installing DBD::mysql in solaris 9 January 30, 2005, 7:02 am
Net::SNMP - ERROR: Invalid IpAddress length (8 bytes) January 20, 2006, 1:41 pm
LWP::UserAgent + HTTPS + threads ==> segmentation fault November 11, 2004, 9:57 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap