T
tianzhen
Unregistered / Unconfirmed
GUEST, unregistred user!
奇怪的是我从来没用到TIdProxyConnectionInfo过
FASTMM4报告片断:
--------------------------------2006/7/17 9:28:52--------------------------------
A memory block has been leaked. The size is: 28
Stack trace of when this block was allocated (return addresses):
402B23 [system.pas][System][@GetMem][2463]
40389F [system.pas][System][TObject.NewInstance][8473]
403C66 [system.pas][System][@ClassCreate][9138]
4B4AB2 [IdHTTPHeaderInfo][TIdProxyConnectionInfo.Create]
4C1BFE [IdHTTP][TIdCustomHTTP.Create]
522738 [unit_func.pas][unit_func][getcode][30]
521B75 [unit_chkvicurl.pas][unit_chkvicurl][Tchkvicurl.Execute2][251]
5217D9 [unit_chkvicurl.pas][unit_chkvicurl][Tchkvicurl.Execute][195]
42D3B9 [classes.pas][Classes][ThreadProc][9763]
The block is currently used for an object of class: TIdProxyConnectionInfo
The allocation number is: 552902
------------------------------
相关问题代码片断:
case mode of
0: Execute2;
//问题代码 [Tchkvicurl.Execute][195]
1: Execute1;
else
Execute2;
end;
...
if getcode(ss1, ss2) then
begin
//问题代码 [Tchkvicurl.Execute2][251]
...
function getcode(URL: string;
keyword: string): boolean;
var
myHTTP: TIDHttp;
ss:string;
begin
Result:= False;
myHTTP := TIDHttp.Create(nil);
//问题代码 [getcode][30]
try
try
myHTTP.HandleRedirects := true;
ss:= myHTTP.Get(URL);
if Keyword='' then
begin
if myHTTP.ResponseCode=200 then
Result :=true;
end else
begin
if (myHTTP.ResponseCode=200) and (ansipos(Keyword,ss)>0) then
//uses SysUtils
Result :=true;
end;
except
end;
finally
myHTTP.Free;
end;
end;
FASTMM4报告片断:
--------------------------------2006/7/17 9:28:52--------------------------------
A memory block has been leaked. The size is: 28
Stack trace of when this block was allocated (return addresses):
402B23 [system.pas][System][@GetMem][2463]
40389F [system.pas][System][TObject.NewInstance][8473]
403C66 [system.pas][System][@ClassCreate][9138]
4B4AB2 [IdHTTPHeaderInfo][TIdProxyConnectionInfo.Create]
4C1BFE [IdHTTP][TIdCustomHTTP.Create]
522738 [unit_func.pas][unit_func][getcode][30]
521B75 [unit_chkvicurl.pas][unit_chkvicurl][Tchkvicurl.Execute2][251]
5217D9 [unit_chkvicurl.pas][unit_chkvicurl][Tchkvicurl.Execute][195]
42D3B9 [classes.pas][Classes][ThreadProc][9763]
The block is currently used for an object of class: TIdProxyConnectionInfo
The allocation number is: 552902
------------------------------
相关问题代码片断:
case mode of
0: Execute2;
//问题代码 [Tchkvicurl.Execute][195]
1: Execute1;
else
Execute2;
end;
...
if getcode(ss1, ss2) then
begin
//问题代码 [Tchkvicurl.Execute2][251]
...
function getcode(URL: string;
keyword: string): boolean;
var
myHTTP: TIDHttp;
ss:string;
begin
Result:= False;
myHTTP := TIDHttp.Create(nil);
//问题代码 [getcode][30]
try
try
myHTTP.HandleRedirects := true;
ss:= myHTTP.Get(URL);
if Keyword='' then
begin
if myHTTP.ResponseCode=200 then
Result :=true;
end else
begin
if (myHTTP.ResponseCode=200) and (ansipos(Keyword,ss)>0) then
//uses SysUtils
Result :=true;
end;
except
end;
finally
myHTTP.Free;
end;
end;