void Interpreter::PushObject(Object* o)
{
luabind::object lo = luabind::object(L,o);
lo.push(L);
//lo = luabind::object(L,-1);
Object* test = luabind::object_cast<Object*>(lo);
if (o != test)
{
Notify("Doesn't match!");
}
}
This code crashes with an error message:
void Interpreter::PushObject(Object* o)
{
luabind::object lo = luabind::object(L,o);
lo.push(L);
lo = luabind::object(L,-1);
Object* test = luabind::object_cast<Object*>(lo);
if (o != test)
{
Notify("Doesn't match!");
}
}
"Unhandled exception at 0x7c812afb in LE3.exe: Microsoft C++ exception: luabind::cast_failed at memory location 0x0012f724.."[/quote]