本文整理自网络,侵删。
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 cef4Delphi chromium1 设置user-agent
Delphi xe更改ttrayicon系统任务栏图标(无模糊)
Delphi android实例-录音与回放(播放mp3)(xe8+小米2)
Delphi 2009 indy10 idhttp get 中文出现乱码的问题
Delphi 多核机器上编程实现将指定进程pid放到指定cpu上运行
更多相关阅读请进入《Delphi》频道 >>