Yes, but a central place would be much nicer, especially if you have a lot of clients together (50 +) ..
Paul ----- Original Message ----- From: "Francois PIETTE" <francois.pie...@skynet.be> To: "ICS support mailing" <twsocket@elists.org> Sent: Sunday, May 03, 2009 4:30 PM Subject: Re: [twsocket] THttpCli exception handling in async mode >> I'm trying to handle exceptions of all httpcli into a single procedure. >> I've have used HttpCli.CtrlSocket.onBgException, but this not fired at >> all. >> When I click twice on Button1, I get an error 'HttpCli is busy'. >> This is normal, but I wan't to intercept this. >> >> How ? > > Use try/except: > > procedure TForm13.Button1Click(Sender: TObject); > begin > HttpCli1.URL:= 'http://www.google.com/'; > HttpCli1.RcvdStream:= TMemoryStream.create; > try > HttpCli1.GetASync; > except > // Blablabla... > end; > end; > > -- > francois.pie...@overbyte.be > The author of the freeware multi-tier middleware MidWare > The author of the freeware Internet Component Suite (ICS) > http://www.overbyte.be > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be