Hi

I wrote a small Win32::GUI Testprogram, which works well with perl 5.6.0/NT.
Now i have changed to perl 5.8.0/NT and want to use this program, but now 
when the program starts the first Window of Win32::GUI the following error
occurs:

Perl: perl.exe - Error in application
Instruction in "0x78...." points to mem "0x00000000". The command "read" 
couldn't executed.
Click "OK" to close application.

The DOS-Terminal-Output is
...>perl win32tst.pl
Hello World!
CWD: I:\Proj\ApCv\PerlDos
MS-Domain: RBAMOUSER
GUI-Version: 0.0.558

...>

I think there is a real dump/trivial error, but can't imagine what will produce 
this
"Null-Pointer assignment".

-------------------------------------------------------------------------------
PPM query *
   1. ActivePerl-DocTools     [0.04] Perl extension for Documentation TOC Gene~
   2. ActiveState-Relocat~    [0.03] Relocate a Perl installation
   3. Archive-Tar            [0.072] module for manipulation of tar archives.
   4. Compress-Zlib           [1.16] Interface to zlib compression library
   5. Data-Dump               [0.04] Pretty printing of data structures
   6. DBD-ODBC                [1.06] ODBC Driver for DBI
   7. DBI                     [1.37] Database independent interface for Perl
   8. Digest-HMAC             [1.01] Keyed-Hashing for Message Authentication
   9. Digest-MD2               [2.0] Perl interface to the MD2 Algorithm
  10. Digest-MD4               [1.1] Perl interface to the MD4 Algorithm
  11. Digest-SHA1             [2.01] Perl interface to the SHA-1 Algorithm
  12. File-CounterFile        [0.12] Persistent counter class
  13. Font-AFM                [1.18] Interface to Adobe Font Metrics files
  14. HTML-Parser             [3.26] HTML parser class
  15. HTML-Tagset             [3.03] Data tables useful in parsing HTML
  16. HTML-Tree               [3.11] HTML syntax tree builder
  17. libwin32                [0.20] A collection of extensions that aims to p~
  18. libwww-perl             [5.68] Library for WWW access in Perl
  19. MD5                     [2.02] Perl interface to the MD5 Algorithm (obso~
  20. PPM3                     [3.1] Perl Package Manager: locate, install, up~
  21. SOAP-Lite               [0.55] Library for Simple Object Access Protocol~
  22. Tk                   [800.024] A Graphical User Interface Toolkit
  23. URI                     [1.19] Uniform Resource Identifiers (absolute an~
  24. Win32-GUI            [0.0.558] Perl-Win32 Graphical User Interface Exten~
  25. WWW-AllMusicGuide       [0.05] A Perl module to search the All Music Gui~
  26. XML-Parser              [2.31] A Perl module for parsing XML documents
  27. XML-Simple              [1.06] Easy API to read/write XML (esp config fi~

-------------------------------------------------------------------------------
win32tst.pl

  use Win32;
  use Win32::GUI;

  $hostname=Win32::NodeName();

  print $hostname
  print "Hello World!\n";
  print "CWD: ", Win32::GetCwd(), "\n";
  print "MS-Domain: ", Win32::DomainName(), "\n";
  print "GUI-Version: ", Win32::GUI->Version(), "\n";

  $text = defined( $ARGV[0] ) ? $ARGV[0] : "Hello World";
  $main = Win32::GUI::Window->new( -name => 'Main',
                                 -text => 'Perl' );
  $label = $main->AddLabel( -text => $text,
                            -background => 0x000000 );
  $main->Show();
  Win32::GUI::Dialog();

  sub Main_Terminate {
    print "End!";
    -1;
  }

Reply via email to