On 9/17/07, Shmuel Fomberg wrote:
>
> Can anyone tell me why-o-why when I remove the two comments on the two
> SvREFCNT_dec, I get two matching error messages:
> Attempt to free unreferenced scalar: SV 0x0....
>
You get the errors because the values are already destroyed before
SvREFCNT_dec tries to decrement their reference count.
Of course that doesn't really answer your question, just raises the
question of why they are already destroyed... :)
Have you tried:
if (sv_name != NULL)
SvREFCNT_dec(sv_name);
What does that give?
Also consider perlmonks or p5p if no one on this list answers, you'll
probably find more XS experts there...
Cheers,
--
Offer Kaye
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl