It depends how you are programming. Most exceptions are triggered in the
background, actually from the "message pump" (that is how Windows is
working).

See OnBackgroundException event.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author 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" <twsocket@elists.org>
Sent: Friday, March 28, 2008 2:05 PM
Subject: Re: [twsocket] THttpCli exception errors


i am also suffering from those exceptions, especially in pop3prot and
smtpprot. i wrapped several try except blocks around every possible
call but it still crashes (the except block gets never called).
could you provide an example code how such errors could be handled ?

regards, retnyg

>> Why not just give the option of sending an alert
>> instead of closing the app with a fatal error?

FP> The app close only because you don't handle the exception.
FP> You can handle the exception as you like. It is not the component which
has
FP> to display an alert, it is your application.

FP> Contribute to the SSL Effort. Visit
FP> http://www.overbyte.be/eng/ssl.html
FP> --
FP> [EMAIL PROTECTED]
FP> Author of ICS (Internet Component Suite, freeware)
FP> Author of MidWare (Multi-tier framework, freeware)
FP> http://www.overbyte.be


FP> ----- Original Message ----- 
FP> From: <[EMAIL PROTECTED]>
FP> To: <twsocket@elists.org>
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 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
>> raise EHttpException.Create(FReasonPhrase, FStatusCode);
>>
>> Why not just give the option of sending an alert instead of closing the
>> app with a fatal error?
>>
>> -- 
>> Want an e-mail address like mine?
>> Get a free e-mail account today at www.mail.com!
>>
>> -- 
>> 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




-- 
Mit freundlichen Grüßen
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


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

Reply via email to