call_function() with memory leak

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

call_function() with memory leak

sunman
This post has NOT been accepted by the mailing list yet.
Hi, all
I met a problom as:
 struct A has been registered to lua, LuaFunc is a lua function need one parameter,
 the i do like following, the process' memory is increasing all the time, then coredump,
 any one has some suggestion? thanks a lot.


// main code
A stOne;

for(; ;)
{
    call_function(L, "LuaFunc", stOne);
}

Reply | Threaded
Open this post in threaded view
|

Re: call_function() with memory leak

sunman
This post has NOT been accepted by the mailing list yet.
i recycle the garbage by myself, but i still do not know thy lua do it self?

i read luabind code, find it use vaue_converter with some instance not free automaticly.