crash on table.insert call in virtual Lua function called from C++
I just tracked down a crash in my program and was able to reproduce it
in a simple test program.
I inherit from a C++ class via Lua and overwrite a virtual function. In
there I call table.insert. If the function is called directly via Lua,
everything works, but if it is called from C++, i.e. via
luabind::wrap_base::call(), it crashes. Source code is included.
A workaround is using "myTable[#myTable] = value", I'm going to do that
for now. (Of course that's not the exact behaviour of table.insert, but
close enough for my needs.)