DispatchPtr not releasing
Normand Mongeau <[email protected]> Mon, 29 Aug 2005 17:36:41 -0400
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <049201c5ace1$bed33920$6600a8c0@tocsh> |
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