|
From: Jouke V. <jo...@pv...> - 2001-09-28 11:07:46
|
Hi,
I'm trying to load a JPG file in a wxImage object, which fails in every
way. First I tried this code:
Wx::InitAllImageHandlers();
my $image = Wx::Image->new();
$image->LoadFile("i.jpg", wxBITMAP_TYPE_JPEG);
Which results in:
"Undefined subroutine &Wx::Image::LoadFileSType called at
C:/perl/site/lib/Wx/Image.pm line 44.
After that I tried to do it with:
Wx::InitAllImageHandlers();
my $image = Wx::Image->new("i.jpg", wxBITMAP_TYPE_JPEG);
Which results in a pagefault, with details:
module MSVCRT.DLL op015f:78001648.
Registers:
EAX=037c9ba0 CS=015f EIP=78001648 EFLGS=00010212
EBX=01fa58d8 SS=0167 ESP=0153f428 EBP=0153f430
ECX=00552a54 DS=0167 ESI=0227f250 FS=40bf
EDX=00000000 ES=0167 EDI=0155a000 GS=0000
Bytes in CS:EIP:
f3 a5 ff 24 95 28 17 00 78 8b c7 ba 03 00 00 00
Stackdump:
0176f3b8 0181580c 0153f480 66335903 01554944 02279b94 0155000c 663358d3
0176f378 0155423c bff7a391 01550000 0153f96c 00000800 00000000 0155000c
Any suggestions?
I'm running Windows 98, using ActiveState Perl 5.6.0 and wxPerl 0.7
(binary PPD distribution).
--
*-----------------------------------------------*
|Jouke Visser |jo...@pv... |
|Perl GUI Geek |http://www.pvoice.org |
*-----------------------------------------------*
PS: Notice new mailaddress!!
|