lua-users home
lua-l archive

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


> Also I wanted to know what is the correct way to destroy a lua_state.
> lua_close(myState) ?

Yes.

> If I have a thread created from a mainState (lua_newthread(mainState).
> Can I close mainState without breaking the thread ?

No. And you can only lua_close mainState, not the thread.