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
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with Subject: 
unsubscribe

Reply via email to