Re: DispatchPtr not releasing

Normand Mongeau <[email protected]> Wed, 31 Aug 2005 19:21:26 -0400
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <00e501c5ae82$ef48bbf0$af00a8c0@tocnm>
So nobody knows about this, or did I not formulate my question clearly
enough?

Norm

----- Original Message -----
From: "Normand Mongeau" <[email protected]>
To: <[email protected]>
Sent: Monday, August 29, 2005 5:36 PM
Subject: [JAWIN] DispatchPtr not releasing


> Hi,
>
> I have a problem with subclasses of DispatchPtr, which do not get released
> when they are passed as arguments of method invocations.
>
> To determine this, I implemented a FinalRelease method in my subclass, and
> when I instantiate my subclass and do nothing special with it, the
> FinalRelease method of my COM object gets called.  But if I send the
> instance as an argument to another COM object (the method does nothing
> with the instance received), then the FinalRelease method of my COM never
> gets called.
>
> Does this ring a bell with anyone?
>
> Thanks,
>
> Norm