lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 27-03-2015 12:35, Santosh Kadam wrote:
Dear all,

I am writing a lua script based app where I create lua scripts and call them from the C programs as required. I load the script into a char buffer and do a     luaL_loadstring(L,scrBuff);.

I am getting the following error.

LUA ERROR: [[string "--[[ Test: Op..."]:140: syntax error near 'TST_OnCa']


Any idea - why is this load string failing ?

So the first  ~4000 chars gets loaded. Looks like your load into "scrBuff" does not load the rest of the file.

/Erik