本文整理自网络,侵删。
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下cpu getcpuid实现(x86和x64)
Delphi cxdbtreelist1判断当父节点含有子节点时 不能删除此父节点
Delphi 使用indy idftp 通过android 上传文件
更多相关阅读请进入《Delphi》频道 >>