lua-users home
lua-l archive

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


Olivier Goudron wrote:
> sk.data = ffi.new("char[255]")
> sv.data = ffi.new("char[255]")

Garbage collected values must be anchored (in a local variable,
Lua table, etc.). A pointer inside a cdata struct is not
considered an anchor.

Not a bug. Read: http://luajit.org/ext_ffi_semantics.html#gc

--Mike