[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Memory Problem with Lua 3.0
- From: David Jeske <jeske@...>
- Date: Thu, 9 Apr 1998 10:19:32 -0700
On Thu, Apr 09, 1998 at 12:23:04PM -0300, Ralf HECKHAUSEN wrote:
> Hi Luiz,
> We are calling one function periodically from the C-application, which causes
> a memory overflow after a few hundred calls. I switched on the debug mode in
> luamem.c and recognized, that the memory usage grows over the long run. The
> number of blocks and kb mem oscilate widly over the time, while the average
> value of blocks is constant, but the mem value grows.
Have you called "collectgarbage()" with a finite number? Try calling it with a
number like "2" and see if your memory problem goes away.
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + email@example.com