本文整理自网络,侵删。
idhttp使用时内存猛增,如何解决?
destructor Destroy; override; //hjh add
...................................
destructor TIdSocksInfo.Destroy;
begin //hjh add...........原有内存漏
try
if FUDPSocksAssociation <> nil then FUDPSocksAssociation.Free;
except
end;
inherited;
end;
IdSocks单元的TIdSocksInfo添加以上代码 相关阅读 >>
Delphi webservices 字节数组 base64编码
winapi 字符及字符串函数(10): lstrcpy - 复制字符串
更多相关阅读请进入《Delphi》频道 >>