本文整理自网络,侵删。
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 char数组、string和pchar的相互转换
Delphi webbrowser多次执行documentcomplete
Delphi try except与try finally不同之处
Delphi xe5 for android ttabcontrol 控件
更多相关阅读请进入《Delphi》频道 >>