Page 1 of 1

Unable to detect resource leak in X64 VCL app

PostPosted: Mon May 28, 2018 3:35 am
by spanfkyous
reproduce:

Create a VCL app, add windows 64 bit platform and switch to x64 platform.

Add this code:

procedure TForm1.FormCreate(Sender: TObject);
begin
allocmem(1000)
end;

Enable aadExcept, check report resource leak on

Run app and close it, nothing happened.

Tested on Delphi 10.2.3 and 10.1 with madCollection 2.8.4.0 and 2.8.4.10
The resource leak report works fine with 32 bit VCL app.

Re: Unable to detect resource leak in X64 VCL app

PostPosted: Mon May 28, 2018 12:41 pm
by madshi
Unfortunately leak reporting and "instantly crash on buffer overrun" is limited to 32bit by design, I'm sorry.

I plan to make it available for 64bit with madExcept 5.0. No ETA yet, though.