Re: [Help me!!] Why isn't ActiveX's destructor in PIE, WM2003?

From: David Gonzales [MS] (dgonzal_at_online.microsoft.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 11:30:22 -0700

This seems to be a problem with Pocket IE on Pocket PC 2003. Suggestion:
explicitly call Release on the interface. You may have to handle the
onUnload event for the webpage and in the event handler call Release thru
script or call an additional method on the interface which just calls
Release. You can use User Agent string for identifying the browser version
and so only do this on Pocket PC 2003.

David
------
This posting is provided "AS IS" with no warranties, and confers no rights.

"SangChul Kang" <vpfmak@hotmail.com> wrote in message
news:d1652842.0404270642.2ddc5df3@posting.google.com...
> I made simple ActiveX using eVC 4.0 and implement IObjectSafetyImpl.
> It works fine. It displays picture on PIE(Pocket Internet Explorer).
> Good.
>
> But the problem was happend when I pressed backward button of PIE. The
> destructor of my ActiveX control was not called. Why?? I tried to find
> out the reason, after all the reason why the destructor was not called
> is that m_dwRef of CComObjectRootEx class is not set to 0.
>
> Why does this problem occur? I really need destructor, how can I make
> PIE call the destructor?