OnError event should be avoided. Preferable use exception handling and
OnBgException.

--
[EMAIL PROTECTED]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

----- Original Message ----- 
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Thursday, April 07, 2005 1:58 PM
Subject: Re[2]: [twsocket] How to know the Error ID of SocketError???


> 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
>


-- 
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

Reply via email to