PDA

View Full Version : Eurekalog report MEMORY OVERRUN LEAK...


Jose Castillo
20-Aug-2009, 03:10 PM
Hi, Eurekalog report this code as ERROR:

new(ptrPercentageInt);
ReadPercentage(ptrPercentageInt,ADDRPERCENTAGE);
lblPaytableVersion.Caption := String(ptrPercentageInt^.acarshortModelo);
lblAddTheoreticalPercentage.Caption := String(ptrPercentageInt^.acarshortMatematica);
Dispose(ptrPercentageInt); <<<<<<<<<------ MEMORY OVERRUN LEAK Why?, Help me!!


Joe

Alex
21-Aug-2009, 08:10 AM
Hi,

You should provide more code (ReadPercentage routine and ptrPercentageInt declaration and filling code), I can not see any wrong with this one.

"String(ptrPercentageInt^.acarshortModelo)" <- looks suspicious. Do you mix automatic string handling with manual?

I also recommend to carefully read this: http://blog.eurekalog.com/?p=230