Re: Strange Memory Problem
- From: Nicholas Sherlock <n_sherlock@xxxxxxxxxxx>
- Date: Sat, 27 Aug 2005 12:08:43 +1200
KLite wrote:
Is useful to develop a program to scan my files on harddrive, but I have a strange memory problem: if I check the memory used for my program, in Windows Task Manager, it reports 140MB (a lot of files), but this is not true. I'm not leaving memory leaks. The only way to get the correct memory used, seems to work when I MINIMIZE the main form window, then if I restore the window, the task manager reports exactly 10MB os memory use, which is correct. That memory is correctly free when I terminate to revise the report list view.
What is wrong? This seems to be the normal behavior of Delphi, I already tested this with programs on Demos folder, specially the complicated Servers... That demos allocates memory and free the allocated memory correctly, I'm doing the same way. Why Task Manager reports a lot of memory (certainly, that memory was used, but by the time I check Task Manager memory for my program, all memory used is already free.
Nothing is wrong. Windows will release the memory when it needs to (It's faster that way - The application might want that memory back at any instant, so it's better to keep it around). If you open some other large application, Windows will finally get around to dumping that extra memory.
Task Manager doesn't give a useful idea of how much memory your application uses.
Cheers, Nicholas Sherlock .
- Follow-Ups:
- Re: Strange Memory Problem
- From: KLite
- Re: Strange Memory Problem
- References:
- Strange Memory Problem
- From: KLite
- Strange Memory Problem
- Prev by Date: Strange Memory Problem
- Next by Date: Re: Strange Memory Problem
- Previous by thread: Strange Memory Problem
- Next by thread: Re: Strange Memory Problem
- Index(es):
Relevant Pages
|