I found that this line was in error:
     $main->AddLabel(-text   => "Hello World");

I needed to include the -name as shown bellow:
     $main->AddLabel(
           -name   => "Test",
           -text   => "Hello World",
       );

What bothers me about this is that I pulled the top line right from the documentation. I am sure no one has time but the docs should be changed accordingly.

Louis

At 08:31 AM 6/26/2001 -0400, you wrote:
I am getting perl.exe - Application Error when trying to run the following code:
    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 am sure the error is not in perl or your win-gui module but I do not know what it is or how to go about finding out what is causing it. I have shutdown everything I am running to see if something else is effecting it but I am not getting any where.

If anyone has any suggestions that would be great?
OS: Win2K Pro
Perl: ActivePerl 5.6.0 build 623

Thanks,
Louis

--
¤¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤º°`°º¤
¤°`°Lightbridge, Inc
¤°`°67 South Bedford St.
¤°`°Burlington MA 01832
¤°`°781.359.4795 mailto:[EMAIL PROTECTED]
¤°`°http://www.lightbridge.com
¤¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤º°`°º¤


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

--
¤¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤º°`°º¤
¤°`°Lightbridge, Inc
¤°`°67 South Bedford St.
¤°`°Burlington MA 01832
¤°`°781.359.4795 mailto:[EMAIL PROTECTED]
¤°`°http://www.lightbridge.com
¤¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø¤º°`°º¤


Reply via email to