luacom icon indicating copy to clipboard operation
luacom copied to clipboard

Access Violation in tCOMPtr

Open pqvst opened this issue 12 years ago • 0 comments

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

pqvst avatar Sep 24 '13 07:09 pqvst