LUA5.3 ( x32) Invalid memory access. read error ar address 0

Just starting out? Need help? Post your questions and find answers here.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 636
Joined: Fri Dec 04, 2015 9:26 pm

LUA5.3 ( x32) Invalid memory access. read error ar address 0

Post by skinkairewalker »

hello everyone !

i am trying Lua library by Dadido3 , i have try in x64 and x32 , on x64 this code works fine :

Code: Select all

XIncludeFile "Libraries\Lua\Lua.pbi"

UseModule Lua

Declare Debug_lua(*lua)

Procedure Debug_lua(*lua)
  
  Debug PeekS(lua_tostring(*lua,1),-1,#PB_UTF8)

  
EndProcedure  

Global *lua = luaL_newstate()

luaL_openlibs(*lua)

lua_register(*lua,"Debug",@Debug_lua())

luaL_dofile(*lua,GetCurrentDirectory()+"demo.lua")

lua_close(*lua)

http://prntscr.com/fprs4g
but in x32 this same code happens it > http://prntscr.com/fprs4g