Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Reply Code is not valid
| Subject: | Re: Reply Code is not valid |
| Posted by: | "Kendrick" (kkendri..@harbornet.com) |
| Date: | Mon, 11 Feb 2008 16:33:39 |
Thanks for the input. It turned out to be a time string inserted in the
response. I am not sure how the 'reply code' is parsed out of the response,
or why the error was intermittent, but I moved the time string to the end of
the response and no more error. (The 6:3 was part of 6:30:00 PM.)
>>
>> This line executes several iterations or time but will
>> seemingly randomly generate an eror
>> EIDException: Reply Code is not valid 6:3
>
> SendCmd() is receiving data that is in a different format than what it was
> expecting. If this is happening randomly and not every time, then chances
> are that you are not properly reading everything that the server sends
> you, thus getting your communication out of sync at times. You are
> probably leaving behind unread data from a previous command.
>
>
> Gambit