当前位置:网站首页>Delphi free memory
Delphi free memory
2022-07-05 03:10:00 【Listest】
procedure Tfrmmain.ResetHttpClient;
begin
try
if Assigned(httpClient) then
begin
FreeAndNil(httpClient);
end;
httpClient := TIdHTTP.Create(nil);
httpClient.HandleRedirects := True;
httpClient.Request.AcceptEncoding := '';
httpClient.ReadTimeout:= 30000;
httpClient.ConnectTimeout:= 30000;
except
end;
end;
procedure Tfrmmain.ResetstrList;
begin
try
if Assigned(strList) then
begin
FreeAndNil(strList);
end;
strList := TStringList.Create;
strList.Clear;
except
end;
end;
边栏推荐
- There is a question about whether the parallelism can be set for Flink SQL CDC. If the parallelism is greater than 1, will there be a sequence problem?
- 平台入驻与独立部署优缺点对比
- Watch the online press conference of tdengine community heroes and listen to TD hero talk about the legend of developers
- VM in-depth learning (XXV) -class file overview
- Eight days of learning C language - while loop (embedded) (single chip microcomputer)
- Pat class a 1160 forever (class B 1104 forever)
- 001 chip test
- Elfk deployment
- Leetcode42. connect rainwater
- Cette ADB MySQL prend - elle en charge SQL Server?
猜你喜欢
腾讯云,实现图片上传
Acwing第 58 场周赛【完结】
Character painting, I use characters to draw a Bing Dwen Dwen
Three line by line explanations of the source code of anchor free series network yolox (a total of ten articles, which are guaranteed to be explained line by line. After reading it, you can change the
Pat class a 1160 forever (class B 1104 forever)
Apache build web host
1. Five layer network model
Vb+access hotel service management system
ASP. Net core 6 framework unveiling example demonstration [01]: initial programming experience
Design and practice of kubernetes cluster and application monitoring scheme
随机推荐
Cette ADB MySQL prend - elle en charge SQL Server?
Huawei MPLS experiment
Zabbix
[micro service SCG] 33 usages of filters
Master Fur
Spoon inserts and updates the Oracle database, and some prompts are inserted with errors. Assertion botch: negative time
Vb+access hotel service management system
[Yu Yue education] National Open University autumn 2018 8109-22t (1) monetary and banking reference questions
Design and implementation of campus epidemic prevention and control system based on SSM
Tencent cloud, realize image upload
Devtools的簡單使用
Design and implementation of high availability website architecture
ELK日志分析系统
Hot knowledge of multithreading (I): introduction to ThreadLocal and underlying principles
Structure of ViewModel
Pytest (5) - assertion
Talk about the SQL server version of DTM sub transaction barrier function
Hmi-32- [motion mode] add light panel and basic information column
Utilisation simple de devtools
SPI and IIC communication protocol