Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Leak reporting with FastMM4
Sat, Jul 21 2007 5:56 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Finally cracked it using the supplied demo as an aid. SO for anyone else interested here's how to do it:

1. Copy  
    FastMM_FullDebugMode.dll and
    BorlndMM.dll
from the ....Demos\Replacement borlndmm DLL directory to your application code directory

2. Add .....Replacement BorlndMM DLL\FastMMDebugSupport.pas into your project

3. Add ShareMem as the first item in the .dpr's uses clause

4. in the begin..end section of the .dpr add
    ReportMemoryLeaksOnShutdown := DebugHook <> 0;
    SetMMLogFileName(PChar('C:\zap\Leaks.txt'));

5. Set the linker to add TD32 debug info


Totally obvious and easy isn't it Smiley


Roy Lambert
Mon, Jul 23 2007 2:05 PMPermanent Link

Lance Rasmussen

Jazzie Software

Avatar

Team Elevate Team Elevate

Roy,

sorry I didn't catch on ReportMemoryLeaksOnShutdown := DebugHook <> 0;
earlier.

I've been using that, but didn't think about it.

The later I hadn't caught.

Lance

"Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message
news:C25171C2-CD29-446E-BAC8-85E63ECD7FF9@news.elevatesoft.com...
> Finally cracked it using the supplied demo as an aid. SO for anyone else
> interested here's how to do it:
>
> 1. Copy
> FastMM_FullDebugMode.dll and
> BorlndMM.dll
> from the ....Demos\Replacement borlndmm DLL directory to your application
> code directory
>
> 2. Add .....Replacement BorlndMM DLL\FastMMDebugSupport.pas into your
> project
>
> 3. Add ShareMem as the first item in the .dpr's uses clause
>
> 4. in the begin..end section of the .dpr add
> ReportMemoryLeaksOnShutdown := DebugHook <> 0;
> SetMMLogFileName(PChar('C:\zap\Leaks.txt'));
>
> 5. Set the linker to add TD32 debug info
>
>
> Totally obvious and easy isn't it Smiley
>
>
> Roy Lambert
Image