On Wed, Mar 07, 2001 at 08:11:30PM -0500, Kort, Eric wrote:
> What you say is in line with perlguts.  However, when I tried newRV_noinc in
> the code snippet in question, I got screen fulls of "attempting to free

Maybe the problem lies somewhere else?

> pre-existing SV* (I am creating one by casting the AV* to SV*), so it NEEDS

I can't see how this can have any meaning; casting in C doesn't have any runtime
behavior, AFAIK.

> I don't really know...newRV_noinc has worked for me in the past, but not
> here.  Any other ideas, anyone?

What do you do with the SV * that is returned from this function?  If it goes
on the perl stack as the return from an XSUB, you need to make sure that you
mortalize it.

HTH,

Ben

-- 
Benjamin Holzman                                ECNvantage Corp.
Chief Technical Officer                         295 Park Avenue S., Suite 7C
(212) 358-0436 : [EMAIL PROTECTED]             New York, NY, 10010
$ perl -le 'print join $" ,reverse map ucfirst ,qw{ hacker perl another just}'

Reply via email to