I am a beginner in Perl-xs, but thanks to you, I've managed writing an interface with a C library. Now, I am testing it, and I have a strange error... I can't call the function twice : it works the first time, but for the second time, I have a "Memory fault" !
See test.pl :
my $stereo ={x=>4.2, y=>6.5};
my $geo = Util::StereoToGeoCoordinates($stereo);
print "geo : latitude = ",$geo->{latitude}," longitude
= ",$geo->{longitude},"\n";
# Here I have the right results
$geo = Util::StereoToGeoCoordinates($stereo);
# Here I get : Memory fault (coredump)
print "geo : latitude = ",$geo->{latitude}," longitude
= ",$geo->{longitude},"\n";
Have you ever had this kind of problem? Do you see what can be wrong? If you want, I can send you my .xs or .h too.
Thanks very much for your help.
Isabelle.
