in reply to Re^2: Win32::GUI in Active perl 5.16.3
in thread Win32::GUI in Active perl 5.16.3

If you add  warn "got here"; after all the use statement, but before your program runs, does it get printed?

Replies are listed 'Best First'.
Re^4: Win32::GUI in Active perl 5.16.3
by samir_gambler (Novice) on May 06, 2013 at 10:47 UTC
    yes it gets printed but after that it crashes
    use Win32::GUI(); warn "got here"; $main = Win32::GUI::Window->new(-width => 100,-height => 100,); $main->AddLabel(-text => "Hello, world"); $main->Show(); Win32::GUI::Dialog();
    output
    got here at test2.pl line 2.
    After printing this it crashes and the same error comes.
      well, keep moving it until you find the line it crashes at :)

      Also, did you successfully run the Win32::GUI test suite?

        for the above mentioned code it crashed in the 3rd line
        Loading DB routines from perl5db.pl version 1.37 Editor support available. Enter h or 'h h' for help, or 'perldoc perldebug' for more help. main::(test2.pl:2): warn "got here"; DB<1> n got here at test2.pl line 2. at test2.pl line 2. main::(test2.pl:3): $main = Win32::GUI::Window->new(-width => 100 +,-height = > 100,); DB<1> n Signal SEGV at C:/Perl/site/lib/Win32/GUI.pm line 745. Win32::GUI::Window::new('Win32::GUI::Window', '-width', 100, ' +-height', 100) called at test2.pl line 3 c:\sam>
        How to run the Win32::GUI test suite?