>Is Lua 'heap-safe'? ie, is all memory allocated by lua freed by lua, and no >external memory used ever freed by Lua? Yes. Also, like I said, Lua 5.1 will make this transparent, because it will use a user-supplied memory allocator. --lhf