Re: [twsocket] HttpAppServer Finish question

2011-01-30 Thread Busai Péter
Thanks.
I send answer and call Finish in OnTerminate event.
AFAIK that runs in main thread context.

Peter

2011.01.30. 15:51 keltezéssel, Francois PIETTE írta:
 You have to call Finish in the contrext of the thread running
 UrlHandler.Execute, not your worker thread. It is not important that
 it is in the Execute method, only the thread context matters.

 Of course, the browser has a timeout, but much longer than 10 seconds.

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


Re: [twsocket] Error handling

2011-01-30 Thread daniel cc

Hello,
Thanks for the response.
Sorry for delay.

Do we have any demos where -- OnBgException is handled?
I simply can't find any, in the server or the client demos.
I have tryed to set Can Close and put the error into the memo with no 
success.
All I need is to avoid the error pop-up and put the error into the memo/log 
file.


If anyone has ever done this,
could you please post some example of how it is done or can be done.

Thanks

-Original Message- 
From: Francois PIETTE

Sent: Thursday, January 27, 2011 10:51 PM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Can someone please guide me to a demo where the ICS Socket errors are 
handled?
I have checked almost all and each one of them are having some handling 
but I can’t get the result I need.


Example: If I pull the network cable from the client I get socket error 
pop-up

which is something that I wouldn’t like to see.


What is the exception/error which is generated ?

See OnBgException event.

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

Re: [twsocket] Error handling

2011-01-30 Thread Francois PIETTE

Daniel,

You have not answered my question: What is the exception/error which is 
generated ?


One we know which error/exception is killing you, we'll probably be able to 
give a better idea.
OnBgException handle background exceptions, that is exceptions triggered in 
the message pump and not handled elsewhere. You can also have exception 
anywhere you call an ICS method and you catch it with a try/except. But 
usually there is no such exception unless you've made a programming error or 
miunderstood some concept. So plese tell us what exception/error you 
have !


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


- Original Message - 
From: daniel cc dan...@signedsource.com

To: ICS support mailing twsocket@elists.org
Sent: Monday, January 31, 2011 7:46 AM
Subject: Re: [twsocket] Error handling



Hello,
Thanks for the response.
Sorry for delay.

Do we have any demos where -- OnBgException is handled?
I simply can't find any, in the server or the client demos.
I have tryed to set Can Close and put the error into the memo with no 
success.
All I need is to avoid the error pop-up and put the error into the 
memo/log file.


If anyone has ever done this,
could you please post some example of how it is done or can be done.

Thanks

-Original Message- 
From: Francois PIETTE

Sent: Thursday, January 27, 2011 10:51 PM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Can someone please guide me to a demo where the ICS Socket errors are 
handled?
I have checked almost all and each one of them are having some handling 
but I can’t get the result I need.


Example: If I pull the network cable from the client I get socket error 
pop-up

which is something that I wouldn’t like to see.


What is the exception/error which is generated ?

See OnBgException event.

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


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

Re: [twsocket] Error handling

2011-01-30 Thread daniel cc

Sorry Francois,
I tought I had it in the previous mail.

Here it is,
There camed up a little pop-up saying Socket error 10052
This camed up when I pulled the network cable off (testing in windows xp 
professional).


However,
I have just tested again with this and the error is gone but I still would 
very much like to catch the errors and put them into the log. For that I 
very much need some samples.
procedure TfrmMain.SslWSocketClientBgException(Sender: TObject; E: 
Exception;

 var CanClose: Boolean);
begin
 CanClose := True;
 Display.lines.Add('Connection terminated');
end;


Could you please correct me if any of these is wrong (trying to find out 
socket states for log events)?

/
const
aSocketState: array[TSocketState] of string = (
 'Invalid',   'Opened',
 'Bound', 'Connecting',
 'Connected', 'Accepting',
 'Listening', 'Closed', 'Closing');
/


-Original Message- 
From: Francois PIETTE

Sent: Monday, January 31, 2011 9:08 AM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Daniel,

You have not answered my question: What is the exception/error which is
generated ?

One we know which error/exception is killing you, we'll probably be able to
give a better idea.
OnBgException handle background exceptions, that is exceptions triggered in
the message pump and not handled elsewhere. You can also have exception
anywhere you call an ICS method and you catch it with a try/except. But
usually there is no such exception unless you've made a programming error or
miunderstood some concept. So plese tell us what exception/error you
have !

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


- Original Message - 
From: daniel cc dan...@signedsource.com

To: ICS support mailing twsocket@elists.org
Sent: Monday, January 31, 2011 7:46 AM
Subject: Re: [twsocket] Error handling



Hello,
Thanks for the response.
Sorry for delay.

Do we have any demos where -- OnBgException is handled?
I simply can't find any, in the server or the client demos.
I have tryed to set Can Close and put the error into the memo with no 
success.
All I need is to avoid the error pop-up and put the error into the 
memo/log file.


If anyone has ever done this,
could you please post some example of how it is done or can be done.

Thanks

-Original Message- 
From: Francois PIETTE

Sent: Thursday, January 27, 2011 10:51 PM
To: ICS support mailing
Subject: Re: [twsocket] Error handling

Can someone please guide me to a demo where the ICS Socket errors are 
handled?
I have checked almost all and each one of them are having some handling 
but I can’t get the result I need.


Example: If I pull the network cable from the client I get socket error 
pop-up

which is something that I wouldn’t like to see.


What is the exception/error which is generated ?

See OnBgException event.

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


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