lua-users home
lua-l archive

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


Hi,

When I call collectgarbage in a __gc metamethod, Lua GC tries to collect another userdata and therefore calls another __gc metamethod before finishing the current one. And destructing two objects simultaneously results in crashing. I'm using Lua 5.1.4.

Do you know a way to avoid this situation?

Thank you.

--
Atilim Cetin