Re: DispatchPtr not releasing
Morten Andersen <[email protected]> Thu, 1 Sep 2005 17:55:23 +0200
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
Hi Norm, I am at least not sure I understand your problem 100%. So if possible, can you please post a couple of lines of code that shows your problem Best Regards, and sorry for not being so quick in answering. Morten Normand Mongeau wrote: > 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 > >