I ran the script on my system , and it worked fine: however, from all I've
seen in this group, the problem is most likely that you didn't include a
name on your label. That causes a lot of crashes: make a habit of -name'ing
everything (even if its -name=>'label001'). Try replacing:

 $main->AddLabel(-text => "Hello, World");

with

 $main->AddLabel(-name => 'label001', -text => "Hello, World");

and try again.

Hope this helps,
-Mike


-----Original Message-----
From: Frank Stetzer [mailto:[EMAIL PROTECTED]
Sent: Friday, September 28, 2001 9:41 AM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] Absolute newbie Q


I tried the "Hello, world" script from the Win32::GUI tutorial part 1.
(This is with yeterday's Active State build and Win32::GUI 0.558
installed by ppm on Win98SE).  I get the following Windows error:

   PERL caused an invalid page fault in
   Module MSVCRT.DLL at 0167:78003b44.
   Registers:
   EAX=01824f5c CS=0167 EIP=78003b44 EFLGS=00010246
     (etc.)

This is the script (hello.pl)

   use Win32::GUI;
   $main = Win32::GUI::Window->new(
     -name => 'Main',
     -width => 100, 
     -height => 100,
    );
   $main->AddLabel(-text => "Hello, World");
   $main->Show();
   Win32::GUI::Dialog();

   sub Main_Terminate {
    -1;
   }
        
I assume I missed some absolute first step in the process...
I scanned the listserv archive and didn't see anyone else 
disqualified so early in the game :-)
========================================================================
Frank Stetzer, Ph.D.                              [EMAIL PROTECTED]
Research Support                                  P.O. Box 413
Information and Media Technologies                Milwaukee, WI 53201
University of Wisconsin - Milwaukee               (414)-229-4571


_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users

Reply via email to