Hi all.<br>I have the following code :-<br><br>var<br> PMM: TProcessMemMgr;<br> PrcBuf: PChar;<br>begin<br> .....code here<br><br> PrcBuf := PMM.AllocMem(Len + 1);<br> SendMessage(hStatusBarHandle, SB_GETTEXT, PanelNumber, Longint(PrcBuf));<br>
Result := PMM.ReadStr(PrcBuf);<br> PMM.FreeMem(PrcBuf);<br> <br> ...code carries on<br>end;<br><br>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 :<br>
<br>PrcBuf := PMM.AllocMem(Len + 1);<br><br>causes a memory leak. Yet, <br><br>PMM.FreeMem(PrcBuf);<br><br>is being called. Is this just a qwerk of Eureka Log? or is it a "real" mem leak?<br><br><br>Jeremy<br>