Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: Detect when command complete
| Subject: | Re: Detect when command complete |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 3 May 2006 15:54:56 |
"Jon" <JonJacobs@comcast.net> wrote in message
news:44590a27$1@newsgroups.borland.com...
> Reply.Assign(Server.ReplyTexts.FindByNumber(401));
That is not the correct way to assign responses. You should be doing this
instead:
Reply.NumericCode := 401;
Or this:
Reply.SetReply(401, 'some text here');
The fact that you are receive a response code of 0 on the client side
suggests that your server-side ReplyTexts collection does not have any "401"
item in it to begin with, such that your response is being Assign()'ed a nil
pointer..
Gambit