K
kmwap
Unregistered / Unconfirmed
GUEST, unregistred user!
var
i,k: Integer;
IdDNSResolver :TIdDNSResolver;
begin
try
k := 0 ;
IdDNSResolver := TIdDNSResolver.Create(nil);
IdDNSResolver.ReceiveTimeout :=400;
while k<DNSCount do
begin
with IdDNSResolver do
begin
Host := DNS[k];
QueryRecords := [qtMX];
try
Resolve(AQName);//据观察就是因为用了这句
Active;
for i := 0 to QueryResult.Count-1 do if QueryResult IS TMxRecord then AMxList.Add(TMXRecord(QueryResult).ExchangeServer);
if AMxList.Count > 0 then k := DNSCount;
except
end;
end;
IdDNSResolver.QueryResult.Clear;
inc(k);
end;
IdDNSResolver.Destroy;
except
end;
end;
反复执等一段时间后为什么内存不停的增长???
i,k: Integer;
IdDNSResolver :TIdDNSResolver;
begin
try
k := 0 ;
IdDNSResolver := TIdDNSResolver.Create(nil);
IdDNSResolver.ReceiveTimeout :=400;
while k<DNSCount do
begin
with IdDNSResolver do
begin
Host := DNS[k];
QueryRecords := [qtMX];
try
Resolve(AQName);//据观察就是因为用了这句
Active;
for i := 0 to QueryResult.Count-1 do if QueryResult IS TMxRecord then AMxList.Add(TMXRecord(QueryResult).ExchangeServer);
if AMxList.Count > 0 then k := DNSCount;
except
end;
end;
IdDNSResolver.QueryResult.Clear;
inc(k);
end;
IdDNSResolver.Destroy;
except
end;
end;
反复执等一段时间后为什么内存不停的增长???