Re: [twsocket] THttpCli exception errors

2008-04-01 Thread Wilfried Mestdagh
Hello, > The error still persists, though, I don't see your original post. Can you tell me what the error is? > and remains to crash the app. What do you mean by 'crash'? Is there an exception error, is the application non responcive, something else? > Is there another way to go about this err

Re: [twsocket] THttpCli exception errors

2008-03-31 Thread crazdcodr
I have tried assigning a procedure to handle this exception using your suggestions, using this code: - HttpCli.CtrlSocket.OnBgException := ExErr; ... procedure TForm1.ExErr(sender: TObject; E: Exception; var CanClose: Boolean); Begin try CanClose := False; Label1.Caption := 'Exception error.'; exc

Re: [twsocket] THttpCli exception errors

2008-03-30 Thread Wilfried Mestdagh
Hello, OnBGException fire when exception occurs from the middle of nowhere, that is the message pump. Normally I set CanClose := True; in there and log it. Until now I never had it executed. But it can also execute if you have exceptions in your code. --- Rgds, Wilfried [TeamICS] http://www.overb

Re: [twsocket] THttpCli exception errors

2008-03-30 Thread crazdcodr
Thank you for the response Francois. I've tried using a try..except statement, which didn't work. I also cannot find any information about "OnBackgroundException". Can you please be more specific as to how you recommend handling these exception errors? -- Want an e-mail address like mine? Get a f

Re: [twsocket] THttpCli exception errors

2008-03-28 Thread Francois Piette
hor of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) http://www.overbyte.be - Original Message - From: <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Friday, March 28, 2008 2:05 PM Subject: Re: [twsocket] THttpCli exception er

Re: [twsocket] THttpCli exception errors

2008-03-28 Thread retnyg
riginal Message - FP> From: <[EMAIL PROTECTED]> FP> To: FP> Sent: Thursday, March 27, 2008 8:41 AM FP> Subject: [twsocket] THttpCli exception errors >> Why is ICS written to trigger an exception error upon events such as an >> internal server error, or when a conne

Re: [twsocket] THttpCli exception errors

2008-03-27 Thread Francois Piette
rch 27, 2008 8:41 AM Subject: [twsocket] THttpCli exception errors > Why is ICS written to trigger an exception error upon events such as an > internal server error, or when a connection request is aborted in the > middle of receiving data from the server? The code I am referring to is &

[twsocket] THttpCli exception errors

2008-03-27 Thread crazdcodr
Why is ICS written to trigger an exception error upon events such as an internal server error, or when a connection request is aborted in the middle of receiving data from the server? The code I am referring to is this: if (FStatusCode >= 400) and (FStatusCode <> 401) and (FStatusCode <> 407) then