[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Error when opening the IO lib
- From: Jose Marin <jose_marin2@...>
- Date: Mon, 7 May 2007 07:21:22 -0700 (PDT)
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/