What event does IE dispatch when an activex control is being unloaded?
Posted
by tactoth
on Stack Overflow
See other posts from Stack Overflow
or by tactoth
Published on 2010-05-27T03:42:02Z
Indexed on
2010/05/27
3:51 UTC
Read the original article
Hit count: 155
activex
Hi I have a ActiveX like this:
class CMyActiveX : public CComObjectRootEx... ... { HRESULT FinalContruct(){return S_OK;} void Start() { // a new thread is created here for some task } void FinalRelease() { // if the thread is alive kill it } }
However when browser is closed the method FinalRelease is not called. So the thread keeps alive and a crash is encountered at the exit.
Any idea on this? Thank you!
© Stack Overflow or respective owner