Hello Higer, I just take a look at it (it was long time ago using HttpCli), and OnSocketError is fired with the OnError of TWSocket, witch normally is never used because we relying on exception errors.
Using the OnError result in non-exception calling but you also dont know what's wrong. Once there has been spoken to pass the exception message as argument, but since almost nobody use it it is never done I suppose. I dont know wy this is add in HttpCli component. I suggest to comment the line in the source (so that nothing is assigned to the control socket's OnError), and see what happens. --- Rgds, Wilfried http://www.mestdagh.biz Thursday, April 7, 2005, 13:20, Higer wrote: > But I don't know how to gain the ErrorCode in > HttpCli1SocketError(Sender: TObject) procedure??? > [EMAIL PROTECTED] wrote: > ------------------------------ > Message: 9 > Date: Wed, 6 Apr 2005 16:17:54 +0200 > From: Wilfried Mestdagh > Subject: Re: [twsocket] How to know the Error ID of SocketError??? > To: ICS support mailing > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-15 > Hello Higer, > In all events you find an ErrorCode. If >= 10000 it is winsock error. > Dont use LastError, it is already used by the components. > --- > Rgds, Wilfried > http://www.mestdagh.biz > Wednesday, April 6, 2005, 14:40, Higer wrote: >> When I get some url by the newest HttpCli. >> If the SocketError was thrown, how to know the Error ID of SocketError??? >> At that time, .CtrlSocket.LastError=0 >> Thank you very much. >> --------------------------------- >> Do you Yahoo!? >> Make Yahoo! your home page > ------------------------------ > --------------------------------- > Do you Yahoo!? > Better first dates. More second dates. Yahoo! Personals -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be