[fpc-devel] Why/how does the compiler have a non-trivial numberofmemory leaks after over two decades of development?
Michael Van Canneyt
michael at freepascal.org
Mon Jul 30 15:57:02 CEST 2018
On Mon, 30 Jul 2018, J. Gareth Moreton wrote:
> I would say that that's a little naïve and dangerous to think like that.
> Sure, Windows might have the means to clean up memory after an application
> terminates, but not all platforms have such heap deallocation features
> (e.g. pure DOS, where certain procedures and interrupts remain in memory
> even after the application terminates... so-called memory-resident
> programs).
The compiler is not such program. You obviously need to choose for which
programs you do this.
But having the memory freed properly would also enable the use of the compiler
as a DLL in e.g. Lazarus.
Michael.
More information about the fpc-devel
mailing list