hi to all my friends
I write below codes in delphi xe5.
when destination address is not available, i have no problem and program shows me False message, but when the address is available, i receive "Socket Error # 10040 Message Too Long" message.
I change parameters of IdIcmpClient1, such as PacketSize, Port and so on, but my problem is here.
please guide me.
Code:with IdIcmpClient1 do begin ReceiveTimeout := 1000; Host := '188.8.131.52'; Ping; Sleep(2000); if ReplyStatus.ReplyStatusType = rsEcho then ShowMessage('True') else ShowMessage('False'); end;