lua-users home
lua-l archive

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


----- Original Message -----
From: Vesselin Iliev Peev
I getting resource leak errors with Borland C++Builder 5 (Update Pack #1)
when

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
something.

Regards,
Nick