lua-users home
lua-l archive

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


On Thu, May 13, 2010 at 2:27 PM, Gedalia Pasternak <gedalia@gmail.com> wrote:
> lua_State* L = (lua_State*)m_manager->get_lua_state();

any reason why you're not using the lua_State provided by the Lua
call?  when inside a coroutine, it will be a different state, not the
'main' one.

ahh thank you! I was using the global one, forgot that there are multiple ones when coroutines are involved.

thanks a ton.
-gedalia...