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