|
On 2-Aug-04, at 4:10 AM, Michael Roth wrote:
Is the pointer returned by lua_newuserdata() a constant one or exists a possibility that the memory block will be moved by lua and the address of the returned memory block change during garbage collection? I plan to use a C-pointer stored outside the lua context pointing to a memory block returned by lua_newuserdata(). I know already, if there aren't any references from lua to the userdataobject the memory block will be collected and my pointer become invalid.