You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok so I'm a student and trying to make a basic game that can be custom coded using lua and I'm using luabridge
and i have a custom class that allows the user to render his custom objects
render=function()
print("a message from lua")
endGame.RenderManager:OnRender(render)
whiletruedo-- Some game calculations happen here and it can run foreverend
but the issue is when i try to run renderMng.CallHooks() which is supposed to trigger the lua function defined earlier i get the following issue
LuaException: missing error
and access violation some times and the lua function never gets triggered and after a few more calls the app exits when debugging i get
Exception thrown at 0x00007FFDC54EFFA6 (msvcrt.dll) in gamebase.exe: 0xC0000005: Access violation reading location 0x0000000065BCF000.
another run Exception thrown at 0x00007FFDC552D2D0 (msvcrt.dll) in gamebase.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
My console before it exits
0.157??
which seems to be triggered here
I tried calling the function using luabridge::getGlobal(L, "funcname"); and same issue
it seems to be working as expected if i remove my while true loop that I have, but there are some important calculations that are being ran on it so I cannot remove it
Its my first time using luabridge and i don't know what am i wrong at
I'm using luabridge2 from vcpkg
and Lua 5.4.4
The text was updated successfully, but these errors were encountered:
Ok so I'm a student and trying to make a basic game that can be custom coded using lua and I'm using luabridge
and i have a custom class that allows the user to render his custom objects
and i use
to register it
so i can use
but the issue is when i try to run
renderMng.CallHooks()
which is supposed to trigger the lua function defined earlier i get the following issueLuaException: missing error
and access violation some times and the lua function never gets triggered and after a few more calls the app exits when debugging i get
Exception thrown at 0x00007FFDC54EFFA6 (msvcrt.dll) in gamebase.exe: 0xC0000005: Access violation reading location 0x0000000065BCF000.
another run
Exception thrown at 0x00007FFDC552D2D0 (msvcrt.dll) in gamebase.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
My console before it exits
0.157??
which seems to be triggered here
I tried calling the function using
luabridge::getGlobal(L, "funcname");
and same issueit seems to be working as expected if i remove my
while true
loop that I have, but there are some important calculations that are being ran on it so I cannot remove itIts my first time using luabridge and i don't know what am i wrong at
I'm using luabridge2 from vcpkg
and Lua 5.4.4
The text was updated successfully, but these errors were encountered: