[DUG] Monitoring Memory use
Jeremy North
jeremy.north at gmail.com
Thu Jun 28 15:23:23 NZST 2007
On 6/28/07, John Bird <johnkbird at paradise.net.nz> wrote:
> I use Sysinternals Process explorer to monitor the memory that the IDE and
> my programs are using (eg looking for memory leaks etc). (Incidentally the
> D2007 IDE seems much improved in not using memory up over time)
Well that is probably the worst way to do it. Especially trying to
work out if the IDE has memory leaks.
In your applications you can switch on the ReportMemoryLeaksOnShutdown
global variable, to see if your application has leaks.
Either put it in the project file, or the OnCreate of your main form.
ReportMemoryLeaksOnShutdown := True;
You can also download the full version of FastMM and enable a number
of the debug enhancements not in the version that ships with Delphi
and get more information.
If you have a lot of leaks, then I suggest you look at AutomatedQA's
AQTime product.
cheers,
Jeremy
More information about the Delphi
mailing list