[DUG] reported memory leak
Jeremy Coulter
jscoulter at gmail.com
Thu May 28 08:58:00 NZST 2009
Hi all.
I have the following code :-
var
PMM: TProcessMemMgr;
PrcBuf: PChar;
begin
.....code here
PrcBuf := PMM.AllocMem(Len + 1);
SendMessage(hStatusBarHandle, SB_GETTEXT, PanelNumber,
Longint(PrcBuf));
Result := PMM.ReadStr(PrcBuf);
PMM.FreeMem(PrcBuf);
...code carries on
end;
I downloaded Eureka Log trial to check if i had created a memory leak or
not, and as it happens I hadnt so that was good, HOWEVER, it reports that :
PrcBuf := PMM.AllocMem(Len + 1);
causes a memory leak. Yet,
PMM.FreeMem(PrcBuf);
is being called. Is this just a qwerk of Eureka Log? or is it a "real" mem
leak?
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20090528/5e61b1ad/attachment.html
More information about the Delphi
mailing list