lua-users home
lua-l archive

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


Vesselin wrote:

>> I getting resource leak errors with Borland C++Builder 5 (Update Pack #1)
when 

In the case of luac(.exe) I think that the memory leaks that CodeGuard detects
are because the lua_close() function is never called. 

In the case if lua(.exe) there is a command line option -c that calls
lua_close() at exit when set otherwise it is also not called.

I have tested lua (and my code) extensively using CodeGuard for memory leaks in
my LUA Active Scripting Engine "http://www.luascript.thersgb.net/LuaScript.htm";
and have not found any memory leaks in lua provided that lua_close() is called.

Paul.