lua-users home
lua-l archive

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


Hi.

I've downloaded the binaries from luabinaries.luaforge.net (Windows x86 Static Library and Includes (Visual C++ 2005 Compatible)).

When using the lib lua5.1.lib in my project, I have the runtime error "PANIC: unprotected error in call to Lua API (no calling environment)".

The error occurs when trying to register the IO lib.

Thats the code:

lua_State *L = lua_open();

luaopen_base(L);
luaopen_io(L); // Ouch!
luaopen_table(L); 
luaopen_string(L);
luaopen_math(L);
luaopen_debug(L);

luaL_dofile(L, "test.lua");

lua_close(L);


Any tip?

Jose

__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/