On Wednesday, June 9, 2004, at 03:27 PM, PerlDiscuss - Perl Newsgroups and mailing lists wrote:
"The instruction at "0x77f88216" referenced memory at "0x00000000". The memory could not be written".
i love null pointers. :-)
1. Interface file cprog.i used in swig to create a wrapper file
%module cprog %typemap(perl5,in) FILE * { $target = IoIFP(sv_2io($source));\ } int testing(FILE* fp);
the typemap included with perl 5.8.0 includes this code for turning an SV* into a FILE*:
$var = PerlIO_findFILE(IoIFP(sv_2io($arg)))
a little checking confirms that IoIFP() returns a PerlIO*, not a FILE*.
Can anyone explain me soon wht's the problem and how should i rectify it?
erm, i think the problem is that you're using Swig instead of XS. :-)
-- Holy crap, dude, we have kids! -- Elysse, six days after giving birth to twins