|
I've hacked that by defining: #define lua_close(L) ( gluahost_close(L), lua_close(L) ) ;) 3.9.2004 kello 02:52, David Burgess kirjoitti: Would it be possible to add a GC method to the Win32 code
in loadlib.c for library handles? e,g, static int loadlib_gc(lua_State *L) { HINSTANCE h = (HINSTANCE)(lua_unboxpointer(L,1)); if (h) FreeLibrary(h); return 0; } In practice this method only gets called when lua_close() is called. -- db