Александр Киранов wrote: > Does my hook function can be called inside string.find > and other C functions and may cause unexpected problems as it written above? > Is it actual now? Hooks are not called inside C functions. > If so, does lua_State closing by lua_close() will fix these unexpected > problems? No. Well ... everyone has been telling you to use process-level sandboxing, right at the start of this thread. --Mike