Discussion Locked

Unused memory cleaning

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When i'm running my .exe, a strange thing happens. When i look at the Task Manager, my process is taking around 8MB memory. I have this tool( SpyGuru ) that reduces that space to 1.2MB of used memory. I think this is unused memory and if the OS needs it, it?s going to take it, but i would like to know how SpyGuru does it. I have already tryed to use IMalloc::HeapMinimize, _heapmin and HeapCompact( with all thred heap handles ). Notice also that my process has some threads running and i'm under Win2000

Thanks in advance,
Miguel Tadeu

2 replies

by shanghai sam

Hi,

Is it really using 1.2Mb? Or is it using 1.2Mb physical memory after SpyGuru does its stuff and have the other 6.8Mb written to the pagefile?

SpyGuru could be doing something as simple as asking the OS to reduce the application's working set.

Cheers,
Tim.

by mtadeu

Hi there,
It may be also the pagefile( i'm studing it ), but there must be something else.
I have some new data. I'm pretty sure my memory is not leaking and my start.exe keeps growing. I'm also sure that it grows when i use ADOConnection.Execute("DELETE ...." ) command. I also noticed that the same thing happens in a GUI.exe which i'm using in my start.exe. Is it from COM? Anyway it grows about 150K each time.

Thanks again
Miguel Tadeu

This discussion is closed to new replies.