lua-users home
lua-l archive

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


Thanks, i have corrected my code and it works :-)

2012/2/21 Mike Pall <[email protected]>
Olivier Goudron wrote:
> sk.data = ""> > sv.data = "">
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




--
/*
Olivier Goudron, Formateur et Ingénieur système Linux.
Téléphone : 09 72 26 34 75
Email : [email protected]
Site Web : http://goudron.fr
*/