这样调用的ICMP:
ICMP.OnReply := ICMPReply;
ICMP.ReceiveTimeout := 1000;
ICMP.Host := edtHost.Text;
ICMP.Ping;
Application.ProcessMessages;但是无规律的报:
Project ping.ext raisd exception class EIdIcmpException with message
'Non-echo type response received'.Process stopped.Use Step or Run to continue.
这个错误!请问是什么引起的这个错误呢?
ICMP.OnReply := ICMPReply;
ICMP.ReceiveTimeout := 1000;
ICMP.Host := edtHost.Text;
ICMP.Ping;
Application.ProcessMessages;但是无规律的报:
Project ping.ext raisd exception class EIdIcmpException with message
'Non-echo type response received'.Process stopped.Use Step or Run to continue.
这个错误!请问是什么引起的这个错误呢?
解决方案 »
- 如何用不同的身份运行程序
- aodquery删除多条纪录出错!高手给我看看!
- 急.spcomm
- 100分求助!如何将Dbgrid所选择的多行记录中的某一列的值全部修改为'abc'?
- 如何修改dclusr.dpk这个文件,我加fastreport时由于文件有问题
- 一个新手的问题——AdoQuery组件使用Insert命令的疑问??
- 怎样通过程序实现下载另外一台机子的文件(通过映射盘)?
- 请教高手问题。谢了!!!!!!!!!!!!!!!!
- 将DLL注入到其他进程后,如何显示DLL里的form?
- 如何去掉dbgrid右边的滚动条?还有我想买一个屏幕打印的控件。
- 哪个高手能给我一个 Hook API 的 DEMO 多谢了
- Delphi 如何在文本文件中删除指定的文本内容(需要保存原来文本文件内容)
ICMP.ReceiveTimeout := 1000;
ICMP.Host := edtHost.Text;
ICMP.Ping;
//Application.ProcessMessages;
if icmp.ReplyStatus.BytesReceived>0 then
//说明ping通了
把那两行注释掉看看
var n:Integer;
d:tdatetime;
begin
//self.ICMP.OnReply:=ICMPReply;
ICMP.ReceiveTimeout := 1000;
for n:=0 to self.ListView1.Items.Count-1 do
begin
d:=now;
ICMP.Host := self.ListView1.Items.Item[n].SubItems.Strings[1];
m:=n;
self.ICMP.Ping;
//Application.ProcessMessages; if ICMP.ReplyStatus.BytesReceived>0 then
begin
lstReplies.Items.Add(self.ListView1.Items.Item[m].SubItems.Strings[0]+'通'+datetimetostr(d));
end
else
begin
lstReplies.Items.Add(self.ListView1.Items.Item[m].SubItems.Strings[0]+'断'+datetimetostr(d));
end; end;
end;
这样还是会出现那个错误!