Invalid Page Fault With Win32::GUI Under Win98

Ask a Question related to PERL Modules, Design and Development.

  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. Similar Questions and Discussions

    1. 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,...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

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

  4. #3

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

Posting Permissions

  • You may not post new threads
  • You may 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