>> In manual described lua_closethread, but I did not find it. >> Is it exists? >No, it's a bug in the manual. See the Bugs page on the Lua website. And how close thread? In bugs page no solution. lua_close -> segm. fault luaE_freethread? Thanks