Re: Delegated Interface

From: Maarten Wiltink (maarten_at_kittensandcats.net)
Date: 12/09/03


Date: Tue, 9 Dec 2003 11:03:27 +0100


"David Reeve" <dree4456@big-pond.net.au> wrote in message
news:yjeBb.45417$aT.42020@news-server.bigpond.net.au...
> "Charles Geiser" <charles.geiser@dodeka.ch> wrote in message
> news:3fd4a2af_1@news.bluewin.ch...

>> But when I use an interface for the interface property the
>> destructor is no longer called and i get a memory leak. Do
>> you have an explanation for that behaviour?

> Aaargh! now you've started me down the path of pain one more time :-)
> Check your declaration of the property carefully. I've dug out some
> of my old experiments, and the code below doesn't leak as per
> MemProof ....

Or for a quick and dirty approximation of MemProof, set breakpoints
in destructors and check that they're called.

Groetjes,
Maarten Wiltink



Relevant Pages

  • Re: CList Concept
    ... pointer instead of a list of object. ... called automatically by the list class destructor. ... CObject myObject = new CObject; ... if I do it this way, will I get memory leak? ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: CList Concept
    ... there is a bunch of predefined collection classes for standard ... called automatically by the list class destructor. ... CObject myObject = new CObject; ... if I do it this way, will I get memory leak? ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: static object destructor not getting called
    ... The memory leak report comes out before static objects are destructed. ... For some reasons its destructor is not getting called, ...
    (microsoft.public.vc.mfc)
  • Re: Array object operator overloading
    ... "Ramprasad A Padmanabhan" wrote in ... > I thought I should bother about memory leak later, ... As Ron and I pointed out, the problem is not the destructor, ... But you don't need to bother, ...
    (comp.lang.cpp)
  • Re: FastMM4: Large number of memory leaks in my app
    ... Uwe wrote: ... Maybe you should try MemProof or some other memory leak detection software. ... Prev by Date: ...
    (borland.public.delphi.language.basm)