> It appears my environment is being collected. Since you've cited many C snippets, I wonder if you create your threads from C. If that's the case do you keep a reference to your thread in Lua to prevent the coroutine itself from being collected ?