Works great!!! Thanks for the help!

> -----Original Message-----
> From: Sam Tregar [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 6:22 PM
> To: Strahan, Gregory N
> Cc: [EMAIL PROTECTED]
> Subject: Re: Memory Leakage Problems with Inline::C
> 
> 
> On Thu, 24 Jan 2002, Strahan, Gregory N wrote:
> 
> >    Inline_Stack_Push(newSViv(idat1));
> >    Inline_Stack_Push(newSVnv(ndat1));
> 
> Try this:
> 
>    Inline_Stack_Push(sv_2mortal(newSViv(idat1)));
>    Inline_Stack_Push(sv_2mortal(newSVnv(ndat1)));
> 
> After that change your script runs in constant memory on my system.
> 
> Inline::C luminaries: is this fix right?  If so, shouldn't 
> there be some
> mention of it in the cookbook?  All our current examples are pushing
> non-mortal SVs onto the stack.  In fact, there's no mention 
> of mortality
> in any of the Inline::C docs at all...
> 
> -sam
> 
> 
> 


Reply via email to