lua-users home
lua-l archive

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


Hi Fabien,

Just in case, how do you check your leaking problems? I mean, did you
tried closing the state, or calling the lua_gc function ?  I had a
problem with my user data in the past, I had to call lua_gc twice in
some cases because of some weak refs and so on.

Cheers,
  Jose L.

2007/6/27, Fabien <fleutot+lua@gmail.com>:
Hi,

I have a memory leak problem: some userdata objects are never GC'd, and I
really fail to find where it's referenced. Is there a well-known recipe to
help tracking down such leaks, if I know which userdata I'm chasing?

Alternatively, is there some well-known trap that tends to make userdata
more persistent than expected?

Fabien.


--
 Jose L. Hidalgo Valiño (PpluX)
 ---- http://www.pplux.com ----