Actually FastMM also tells you exactly what you did not free, and where.. so.. no memory leaks.. Its amazing how frequently you can forget a try finally.. but.. they all get picked up the moment I run the app.<br><br><div class="gmail_quote">
On Fri, Sep 18, 2009 at 5:33 PM, Kyley Harris <span dir="ltr"><<a href="mailto:Kyley@harrissoftware.com">Kyley@harrissoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Ben Taylor wrote a replacement Mem Manager that does that..<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Sep 18, 2009 at 5:29 PM, John Bird <span dir="ltr"><<a href="mailto:johnkbird@paradise.net.nz" target="_blank">johnkbird@paradise.net.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As far as Garbage collection in Delphi, I have sometimes wondered why there<br>
isn't something along the lines of a RTTI list of objects that have been<br>
created by the program in code (rather than autocreated by the Application),<br>
then it would be quite easy to go thru the list and figure out anything<br>
which needs to be freed, and hasn't been yet.<br>
<br>
With that you would have much of the features of a garbage collection, or at<br>
least an easy way for the programmer to work out what they forgot to free or<br>
never actually got freed..<br>
<br>
Oh wait there probably is somewhere....anyone know? (You can tell I don't<br>
create and free objects that much, in part to avoid extra complexity).<br>
<br>
something along the lines of (frantically inventing code - I am already<br>
used to interating thru components on a form)<br>
<br>
comp:TComponent; //parent form<br>
<br>
for compptr := 0 to comp.ComponentCount - 1 do<br>
begin<br>
if (comp.components[compptr].assigned) and<br>
(comp.components[compptr].LastUse < FiveMinsAgo)<br>
then (comp.components[compptr].free)<br>
<br>
<br>
And because its friday...<br>
<br>
"%20 The Final Frontier..."<br>
<font color="#888888"><br>
John<br>
</font><div><div></div><div><br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@delphi.org.nz" target="_blank">delphi@delphi.org.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@delphi.org.nz" target="_blank">delphi-request@delphi.org.nz</a> with Subject: unsubscribe<br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Kyley Harris<br>Harris Software<br>+64-21-671-821<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Kyley Harris<br>Harris Software<br>+64-21-671-821<br>