Have you got Project Options->Compiler->Range Checking switched on?
I found some runtime problems with memcheck, until I disabled range checking.

Todd.

----- Original Message ----- From: "Ross Levis" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[email protected]>
Sent: Monday, December 12, 2005 10:43 PM
Subject: [DUG] Re: FastMM


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" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[email protected]>
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" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[email protected]>
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
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 9/12/2005


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to