[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Memory leaks in Lua?
- From: "Nick Trout" <nick@...>
- Date: Wed, 6 Jun 2001 10:40:49 +0100
----- Original Message -----
From: Vesselin Iliev Peev
I getting resource leak errors with Borland C++Builder 5 (Update Pack #1)
I found I had to force a garbage collection before calling lua_close to get
lua to clean up properly. Otherwise some userdats was hanging around.
Turn LUA_ASSERT on and you'll get some more useful hints as to where the
memory went. Be careful about using assert in Borland as I think I got it
hanging up (I assume its the exit call conflicting with longjmp - I have
same BCB version). Write a wrapper to make a message box pop up, or