lua-users home
lua-l archive

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


When I run my script, LUA gives this error:
PANIC: unprotected error in call to Lua API (unable to get ModuleFileName)

This only happens when I want to open IO library
luaopen_io(lua);

If I remove this line, nothing bad happens..

I use MSVC 2005 and luabind
Any idea what is causing this?

Doing a simple search for your error message reveals the following threads:

http://lua-users.org/lists/lua-l/2006-09/msg00035.html
http://lua-users.org/lists/lua-l/2006-06/msg00427.html
http://lua-users.org/lists/lua-l/2006-06/msg00432.html

Perhaps these posts from the lua listserv archives will be of use to you.

- Jim