Gabriel Posted December 2, 2011 Share Posted December 2, 2011 How to share the framework with LeadWerks and Lua script called with the function luaT_LoadFile (). For example: in my lua script "toto.lua" Notify ("Hello world") and in my C code: ... int Istatus = luaL_loadfile ((lua_State*) m_entity, "toto.lua"); Istatus = lua_pcall ((lua_State*) m_entity, 0, 0, 0); ... because when I do that, I have a not very nice this message: Unhandled exception at in 0x080b068f MontanaHorse.exe: 0xC0000005: Access violation when reading location 0x08010014. This problem occurs only when I call a function in lua!. if my lua script contains this: b=9999999 v=0 for i = 0,b do v=v+1 end then it works perfectly! Gabriel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.