Jump to content

Recommended Posts

Posted

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...