davidm / luacom

Microsoft Component Object Model (COM) binding for Lua
http://lua-users.org/wiki/LuaCom
Other
116 stars 51 forks source link

Access Violation in tCOMPtr #8

Open pqvst opened 10 years ago

pqvst commented 10 years ago

I am using LuaCOM to provide support for COM in scripts that run in my host application. If the script forgets to release objects before the lua state is closed, then I receive an Access Violation exception in the tCOMPtr destructor.

I'm not really sure what is causing the exception. Is this a bug in LuaCOM, or is there any "nice" way of preventing this from happening so that my host application doesn't crash due to this script error?

Call Stack: tLuaCOM.cpp: tCOMPtr::~tCOMPtr tLuaCOM.cpp: tLuaCOM::~tLuaCOM ... luacom.cpp: tagmeth_gc ... lua_close