Professional Web Applications Themes

Invalid Page Fault With Win32::GUI Under Win98 - PERL Modules

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 ...

  1. #1

    Default 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

  2. #2

    Default Re: Invalid Page Fault With Win32::GUI Under Win98


    "Robert James Kaes" <rjkaesflarenet.com> wrote in message
    news:pan.2004.07.09.20.27.26.686362flarenet.com.. .
    > 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


    Matt Garrish Guest

  3. #3

    Default Re: Invalid Page Fault With Win32::GUI Under Win98


    "Robert James Kaes" <rjkaesflarenet.com> wrote in message
    news:pan.2004.07.09.20.27.26.686362flarenet.com.. .
    > 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



    Matt Garrish Guest

Similar Threads

  1. Invalid Page Fault in my precious ID file! HELP!
    By Vande_Hei_Rachel@adobeforums.com in forum Adobe Indesign Windows
    Replies: 5
    Last Post: May 25th, 02:56 PM
  2. ACRORD32 - Invalid Page Fault in module <unknown>
    By Jon_Cartmel@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: April 4th, 07:34 PM
  3. Problem with Page Object (it is invalid)
    By RickL in forum ASP Components
    Replies: 0
    Last Post: January 5th, 03:56 PM
  4. Invalid page error ADOBEWEB.DLL
    By GEORGE KOULIS in forum Adobe Photoshop Elements
    Replies: 4
    Last Post: August 24th, 09:37 AM
  5. The viewstate is invalid for this page and might be corrupted
    By Gordon Moore in forum ASP.NET General
    Replies: 0
    Last Post: June 27th, 04:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139