Hi, > lua_getglobal(L, "my_coroutine"); > if (lua_resume(L, 0) != 0) > { > ... > } Did you try changing the 0 to 1? If this doesn't work, then I am sure someone else more knowledgeable than me will answer why. :) []s, Diego.