Hello,
I wrote a C++ code that reads from and write to a .lua file
the C++ code write numbers to the beginning of the lua file.
so the .lua file looks something like that :
--Ip,10.1.1.17,,10.1.1.11,10.1.1.12,10.1.1.13,
--1h,10.1.1.11,10.1.1.12,10.1.1.13,
--go2,,10.1.1.11,10.1.1.12,10.1.1.13,
lua function1 ..end
lua function2 .. end
One of the lua functions is called
sPP. What
sPP does is that it takes a set of numbers from C++ and writes them to the beginning to the lua file.
When the C++ code gives a lot of numbers to
sPP , I get this error while running my program:
sPP Failed to run script: /home/m/ns-allinone-3.13/ns-3.13/MA_10.1.1.17.lua:421: too many captures
I googled this problem and i couldn't find anything related to it. So What i did was the following : i looked at the LUA documentation, and found that there is a LUA_MAXCAPTURES that is defined in the
luaconf.h file.
#define LUA_MAXCAPTURES 32
So I thought of increasing the number 32 and put 100 instead.
then i recompiled lua by using this command : make linux local.
but i still got the same error above !
sPP Failed to run script: /home/m/ns-allinone-3.13/ns-3.13/MA_10.1.1.17.lua:421: too many captures
Could you please help me solve this problem ?