[DUG] Re: FastMM

Kyley Harris kyleyharris at gmail.com
Tue Dec 13 00:29:44 NZDT 2005


You cant use both fastmm and memcheck. They are both replacement memory  
managers.
If you accidentally are referencing both uints in a project you will end  
up with all
sorts of trouble.

FastMM will display a dialog box on errors if this is set that shows the  
callstack.
Also. By determining the types of objects leak, you should be able to  
determine location.
well, i normally can ;)


On Mon, 12 Dec 2005 22:43:33 +1300, Ross Levis <ross at stationplaylist.com>  
wrote:

> Nevermind about the FastMM log file.  I found I had to add the defines
> inside the FastMM4.pas file for it to work.
>
> I still can't get MemCheck to work without an access violation, however,
> so any ideas on that welcome.
>
> Ross.
>
> ----- Original Message -----
> From: "Ross Levis" <ross at stationplaylist.com>
> To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
> Sent: Monday, December 12, 2005 10:27 PM
> Subject: Re: FastMM
>
>
> Further to using MemCheck for the first time today, I can't get it to
> work (with or without FastMM).
>
> function ltgmCallerIsNewAnsiString: boolean;
>  //Tells if the guy who called GetMem is NewAnsiString
> asm
>  cmp ebp, 0 //this can happen when there are no stack frames
>  je @@no
>   {$IFNDEF DELPHI71_OR_LATER}
>   mov eax, [EBP + 12]
>   {$ELSE}
>   mov eax, [EBP + 16]   <<< Access Violation
>   {$ENDIF}
>  sub eax, 17
>
> Any ideas?
>
> Ross.
>
> ----- Original Message -----
> From: "Ross Levis" <ross at stationplaylist.com>
> To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
> Sent: Monday, December 12, 2005 10:02 PM
> Subject: FastMM
>
>
> With all this talk about FastMM, I've changed over to using it now in
> D7.  In the first app I tried it on, it reports a dozen small memory
> leaks, whereas MemCheck says there are none.
>
> The problem is I can't work out how to get any details on the leaks.
> I've added defines for FullDebugMode, LogErrorsToFile, and
> LogMemoryLeakDetailToFile, but I can't find a file anywhere.
>
> Ross.
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi



-- 
Kyley Harris
+64-21-671821


More information about the Delphi mailing list