Memory leak will stay until you the application exits.
I would assume it would also be swapped to disk because
OS doesn't know what the application has done with it.
If a leak happens in a function that doesn't get called
very often, it is usually not too bad but if it happens
in a loop, you definitely want to fix it.

-- 
Best regards,
Jack

Thursday, March 1, 2007, 6:01:40 PM, you wrote:

> Hi.

> I used today a tool to check my app for memory leaks.

> I've found 2 in my code and other 20-30 more in Delphi's code (Delphi 7.1).
> They are not so big. The biggest is 4096 in System.pas. Should I close
> my eyes and go on.
> I mean the leaking in pretty small.

> There is a second question: what happen with a leaking? It is that piece
> of memory stored to the swap file or it stays forever in memory?
> I know that Window 'downloads' the applications that are not used for a
> while to swap to make some room in RAM.
> Will be the leaked memory moved to swap also? In this case not even a
> big leaking will be too harmful for the system's performances.


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to