<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Thanks all. <br><br></div><div class="gmail_default" style="font-family:courier new,monospace">Once I tracked down the two components that had not been freed, the hanging stopped.<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">Some create tips in this thread. Thansk for all of them.<br></div><div class="gmail_default" style="font-family:courier new,monospace"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 1, 2015 at 6:31 AM, Graeme Geldenhuys <span dir="ltr"><<a href="mailto:mailinglists@geldenhuys.co.uk" target="_blank">mailinglists@geldenhuys.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Patrick,<br>
<span class=""><br>
On 2015-09-30 at 17:56, Patrick Chevalley wrote:<br>
> My suggestion to try without heaptrc is only to check if this is the<br>
> reason for "slow shutting down". In this case the problem is solved<br>
> because a release build without this option will not be affected.<br>
<br>
<br>
</span>Run your program from the command line, and don't compile it with -WG<br>
(ie: tell the compiler it is a console program, not a GUI one - if you<br>
are using Windows).<br>
<br>
If it takes so long to shut down, that means you have a heck of a lot<br>
of memory leaks. As you can guess, that is bad and should always be<br>
fix! Simply disabling heaptrc is not really a solution.<br>
<br>
<br>
But yes I fully understand "releas builds" of your application<br>
shouldn't include heaptrc. But memory leaks should be fixed none the<br>
less.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
Regards,<br>
- Graeme -<br>
<br>
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal<br>
<a href="http://fpgui.sourceforge.net/" rel="noreferrer" target="_blank">http://fpgui.sourceforge.net/</a><br>
<br>
My public PGP key: <a href="http://tinyurl.com/graeme-pgp" rel="noreferrer" target="_blank">http://tinyurl.com/graeme-pgp</a><br>
<br>
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" rel="noreferrer" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br></div>