lua-users home
lua-l archive

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


Paul Winwood wrote:
> 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.

Agree. I never took attention to this option, but if I omit it, Purify for
WinNT detects memory leaks when running a script, while I get none if I put
it.
I updated my .reg file to reflect this. I join it because some Windows Lua
coders may find it useful. Of course, put the right paths, and your favorite
editor...
 
> 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.

Yeah, you finally release it!
Wow, this is a quite quiet announcement...

> Paul.
> 

-- 
--._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`--

Sent through GMX FreeMail - http://www.gmx.net

Attachment: Lua.reg
Description: Binary data