lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Jun 25, 2011 at 6:32 PM, Xavier Wang <weasley.wx@gmail.com> wrote:
> Obj is a C++ class binding by tolua, it seems that memory2 and memory3 is
> the same! so I don't have my memory back, how do I make my memory back after
> collect?

Maybe try calling collectgarbage "collect" twice;  objects with __gc
get cleaned up on the next pass.

steve d.