lua-users home
lua-l archive

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


Hi all. 
I work on the project for game, that including Lua as a scripting system.
When user change game map, I call
lua_gc(state, LUA_GCCOLLECT) (twice) and some Lua object's (userdata) must be collected. But it isn't.
I discoverd, that if Lua create any table after garbage collection cycle, all work good. But I have to collect objects in time when I call lua_gc.
Can I call lua_gc with "force" instruction?

I hope i was clarify enough.
Greetings from Russia. Thanks.