[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: LuaJIT 2 crashes on lua_pcall ?
- From: "YangFan" <missdeer@...>
- Date: Sat, 14 Nov 2009 12:43:14 +0800
I have a C++ program which embeds Lua interpreter and registers several classes, then replace the Lua interpreter dll with LuaJIT2's. I find that LuaJIT could not resolve userdata type index perfectly, if lua code attempts to call not exists methods in userdata, the C++ application just crashes, but the official Lua interpreter would return error message such as "No such operator define", "attempt to call method 'xxx' ( a nil value )" and so on.