Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Invalid Page Fault With Win32::GUI Under Win98

by Belgarion (Chaplain)
on Jul 09, 2004 at 16:52 UTC ( [id://373196]=perlquestion: print w/replies, xml ) Need Help??

Belgarion has asked for the wisdom of the Perl Monks concerning the following question:

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, -he +ight => 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.

Replies are listed 'Best First'.
Re: Invalid Page Fault With Win32::GUI Under Win98
by jplindstrom (Monsignor) on Jul 09, 2004 at 23:46 UTC

      Thank you! That fixed my problem perfectly.

      http://dada.perl.it/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://373196]
Approved by NovMonk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2025-07-14 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.