When you call a LUA function from c++ and there is a runtime error LuaBind throws a luabind::error exception that you can catch and then read the stack to see what the error was. My debugger definitely catches this exception but when I let the debugger continue, instead of the exception being caught in my code the program immediately terminates.
The exception is thrown in "call_member.hpp" in the LuaBind include files from the destructor ~proxy_member_void_caller().
The problem occurs with simple test code. I am using Xcode 5 with LuaBind 0.9.1.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…