Lua.luaL_dostring Problem
Hello Everyone, I am working on a 2D tile engine using OpenGL, as a personal project to become more familiar with C#.
In my engine, I have decided to use Lua to script certain things, like the GUI for example. However in order for this to work I need to use the method Lua.luaL_dostring().
I currently use Lua to read startup scripts and execute them with Lua.luaL_dofile(vm, "filename"); and that works perfectly, however Lua.luaL_dostring(vm, "somescript"); crashes my program, with a MemoryAccessViolation Exception. Is there something fundamental I'm missing here?
I have tried breaking luaL_dostring down into luaL_loadstring (which executes fine), and then lua_pcall (which crashes the app).
I am unsure what else to try. Has anyone else come across this situation?
Thanks

Is there really no one who
Is there really no one who can say anything about this? Not trying to be a pain or anything.
It looks like the string
It looks like the string isn't marshalled correctly. I'm not familiar with LUA or the relevant bindings - what format does LUA expect strings to be in?
------
OpenTK