idhttp使用时内存猛增,如何解决


本文整理自网络,侵删。

 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 安卓app的http访问权限

Delphi webbrowser多次执行documentcomplete

Delphi如何获取句柄?

Delphi 中的颜色

Delphi try except与try finally不同之处

Delphi xe5 for android ttabcontrol 控件

Delphi 自定义产生随机字符串函数

Delphi中实现javascript gettime函数

Delphi 获取闪盘列表

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...