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

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

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?



Relevant Pages

  • Re: [Help me!!] Why isnt ActiveXs destructor in PIE, WM2003?
    ... > This seems to be a problem with Pocket IE on Pocket PC 2003. ... > explicitly call Release on the interface. ... >> destructor of my ActiveX control was not called. ... Your suggestion was really helpful to me. ...
    (microsoft.public.pocketpc.developer)
  • Re: C++ interface
    ... > destructor because they don't exist for the interface. ... > constructors, destructor and etc. ... If you can somehow be sure no derived class will have a destructor ...
    (comp.lang.cpp)
  • Re: Help with position
    ... The interface works for me. ... Can you folks try your chess software and let me know the result? ... Pocket Grandmaster does it in two. ... Dave K MCSE. ...
    (rec.games.chess.computer)
  • Re: HTC Blue Angel - Siemens SX66 - Audiovox 6600
    ... Mauricio Freitas, Microsoft MVP Mobile Devices ... Software for Pocket PC and Smartphone: http://www.geekzone.co.nz/store ... > connections programmaticly so that a user does not have to worry about ... > unit seems to support only one IP interface at a time. ...
    (microsoft.public.pocketpc.phone_edition)
  • Re: Dispose, Dispose(true), Finalize, IDisposable
    ... the Destructor such as ... There is no extra code executed when an object goes out of scope, as there is in a system using reference counting, so there is no way that you can make anything happen when an object goes out of scope. ... There is nothing magic about the IDisposable interface, it's just an interface as any other. ... system should still have the responsibility to clean up. ...
    (microsoft.public.dotnet.general)