in reply to Re: Re: MemLeak in Perl from C Calls
in thread MemLeak in Perl from C Calls
No, as you say, you're using it pretty much as documented. Probably the best thing to do will be to keep the interpreter hanging around, and call perl_eval_ev() more than once - so in your loop, you get rid of the perl_construct/destruct, and put them outside the loop. That way, the memory you leak is constant, rather than proportional to the number of times you have looped. Not a fix, but a solution nonetheles...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: MemLeak in Perl from C Calls
by stefan k (Curate) on Apr 24, 2001 at 16:13 UTC | |
by SilverB1rd (Scribe) on Apr 24, 2001 at 17:58 UTC | |
by stefan k (Curate) on Apr 24, 2001 at 19:39 UTC |
In Section
Seekers of Perl Wisdom