<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>Yeah, I realised after I said that that keeping programs resident is very different from a memory leak! Still, it's still very good practice to do your own clean-up, especially as you described below. Embedding a compiler DLL into Lazarus would allow for much more interaction.<br>
<br>
Gareth aka. Kit<br>
<div><br>
</div><br>
<span style="font-weight: bold;">On Mon 30/07/18 14:57 , Michael Van Canneyt michael@freepascal.org sent:<br>
</span><blockquote style="BORDER-LEFT: #F5F5F5 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT:0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<br>
<br>
On Mon, 30 Jul 2018, J. Gareth Moreton wrote:
<br>
<br>
<span style="color: rgb(102, 102, 102);">> I would say that that's a little naïve and dangerous to think like that.
</span><br>
<span style="color: rgb(102, 102, 102);">> Sure, Windows might have the means to clean up memory after an application
</span><br>
<span style="color: rgb(102, 102, 102);">> terminates, but not all platforms have such heap deallocation features
</span><br>
<span style="color: rgb(102, 102, 102);">> (e.g. pure DOS, where certain procedures and interrupts remain in memory
</span><br>
<span style="color: rgb(102, 102, 102);">> even after the application terminates... so-called memory-resident
</span><br>
<span style="color: rgb(102, 102, 102);">> programs).
</span><br>
<br>
The compiler is not such program. You obviously need to choose for which
<br>
programs you do this.
<br>
<br>
But having the memory freed properly would also enable the use of the compiler
<br>
as a DLL in e.g. Lazarus.
<br>
<br>
Michael.
<br>
<br>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a target="_blank" href="<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>"><span style="color: red;">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</span></a><br>
<br>
</blockquote></HTML>