Thanks folks - that's the good news, now the bad - same problem with strings and other objects - maybe the macros need changing? For sure the documentation with bold and underline.
-----Original Message----- From: Strahan, Gregory N [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 6:22 PM To: Sam Tregar; Strahan, Gregory N Cc: [EMAIL PROTECTED] Subject: RE: Memory Leakage Problems with Inline::C 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 > > >
