[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Memory leaks most probably called by multiple lua_dobuffer
- From: "Thatcher Ulrich" <tu@...>
- Date: Thu, 17 Oct 2002 15:59:22 -0400
On Oct 17, 2002 at 04:26 -0200, Luiz Henrique de Figueiredo wrote:
> >Basically we are:
> >1) Getting a pre-compiled buffer area(hashed via an id)
> >2) running it using lua_dobuffer
> >3) In the script it may call out to C function which
> > will get another piece of pre-compiled code which get executed
> >(using the same L state passed to the C function)
> >4) returns to the main 'calling script'
As a workaround (not really addressing any underlying problem), why
don't you associate a lua function with each ID, instead of a buffer?
So you'd use lua_call instead of lua_dobuffer to run your scripts.