Board index » delphi » Free method fails

Free method fails


2003-09-25 07:58:33 AM
delphi135
I have a component in delphi 7 where when I call free the component
does not actually release it is resources. The component state is set
to csDestroying, but it does not appear to ever actually destroy.
I've stepped through the destroy methods, there do not appear to be
any errors.
This causes a memory leak, and I am not sure what to look at next.
Any ideas on what could stop a component that has free called on it
from releasing it is memory?
Thanks in advance,
Eric
 
 

Re:Free method fails

XXXX@XXXXX.COM (Eric Waterhouse) writes news:<XXXX@XXXXX.COM>...
Quote
I have a component in delphi 7 where when I call free the component
does not actually release it is resources. The component state is set
to csDestroying, but it does not appear to ever actually destroy.
I've stepped through the destroy methods, there do not appear to be
any errors.

This causes a memory leak, and I am not sure what to look at next.
Any ideas on what could stop a component that has free called on it
from releasing it is memory?

Thanks in advance,
Eric
Never mind. In case anyone else has this issue, I had multiple
references to the same object. By ensuring that notification nilled
the second reference when the first was freed it was fine.