> Well ... everyone has been telling you to use process-level > sandboxing, right at the start of this thread. I know that can be a better solution, but not in my case. Application process takes about 19...34 GB of memory, so I can use only threads... Anyway, thanks all for help! --- С уважением, Киранов Александр 2014-11-13 12:58 GMT+03:00 Mike Pall <mike-1411@xxxxxxxxxx>: > Александр Киранов 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 > >