Roel Vanhout wrote:
Hi,

I'm writing some COM objects that will be used from vbscript with internet explorer. When I set breakpoints in the com object and terminate execution somewhere in the middle of that object, there are a number of Release()'es that aren't called. So then the object isn't destroyed and even if I do regsvr32 /u of the dll, I cannot delete or overwrite the dll. Now my question: is there a way to 'forcefully' destroy the floating com object? I just want to be able to overwrite the dll. (btw using proces explorer from sysinternals I can see that the dll is still opened by explorer.exe and by devenv.exe. I'm not sure why devenv.exe has it open.)

When you terminate your app from inside the debugger, your not allowing any cleanup routines to run. But if you close Internet Explorer, they should be freed, should they not? What are you doing which causes explorer.exe to load the DLL? IE runs inside the iexplore.exe process, so that must be the process locking the DLL.


Ehsan


_______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.

Reply via email to