<br><br><div class="gmail_quote">On 13 December 2011 19:32, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
<br>
On Tue, 13 Dec 2011, Frank Church wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On 13 December 2011 17:10, Marcos Douglas <<a href="mailto:md@delfire.net" target="_blank">md@delfire.net</a>> wrote:<br>
      2011/12/13 Frank Church <<a href="mailto:vfclists@gmail.com" target="_blank">vfclists@gmail.com</a>><br>
      ><br>
      > How do you get a report of unfreed objects in Lazarus?<br>
      ><br>
      > I hav read something about heaptrc and valgrind, but don't know if the latter works on Windows.<br>
<br>
Include heaptrc unit in your program (would be the first unit) or use<br>
IDE 'Project'>'Project Options'|'Compiler<br>
Options'|'Linking'<Debugging><<u></u>Use Heaptrc unit>.<br>
After you close your program, a message will be displayed to you.<br>
<br>
<br>
<br>
Can the output be logged to a file?<br>
</blockquote>
<br></div>
Yes.<br>
<br>
In your main file, call SetHeapTraceOutput in heaptrc:<br>
<br>
procedure SetHeapTraceOutput(const name : string);<br>
<br>
This is a documented feature:<br>
<br>
<a href="http://www.freepascal.org/docs-html/rtl/heaptrc/setheaptraceoutput.html" target="_blank">http://www.freepascal.org/<u></u>docs-html/rtl/heaptrc/<u></u>setheaptraceoutput.html</a><br><font color="#888888">
<br>
Michael.</font><div><div></div><div class="h5"><br>
<br></div></div></blockquote><div><br>Thanks<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5">
--<br>
______________________________<u></u>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.<u></u>freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.<u></u>freepascal.org/mailman/<u></u>listinfo/lazarus</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>