Lua 5.3.5 is embedded in my application (written in C++) and I am using pre-built dynamic 32 bit Lua 5.3.5 libraries on Windows. In my application, I have a script editor which runs Lua scripts. I also use pre-built IUP 3.25 libraries (32 bit) to be able to run IUP scripts in Lua.
I have tested iup examples on github. It seems most are running successful except this example which is on OpenGL. The problem happens with the line require("luagl")
. When I delete the line, there is no error of "multiple VMs detected"; however, then the frame shows with no lines. I am confused as I can run examples like this one with no problems.
I used Dependency walker and it seems all DLL libraries are pointing to Lua53.dll and for the OpenGL example the lines:
1) require("iupluagl"): Loads a) iupgl.dll, iuplua53.dll, lua53.dll and iup.dll
2) require("luagl"): Loads a) lua53.dll and luagl_base.dll
Exactly the same problem "multiple VMs detected" for exactly the same example happens with IUP 3.26 libraries.
Any ideas appreciated.