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 w

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 han

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 t

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

Re: [twsocket] HttpAppServer Finish question

2011-01-30 Thread Francois PIETTE
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. -- francois.pie...@overbyte.be

[twsocket] HttpAppServer Finish question

2011-01-30 Thread Busai Péter
Hi, What exactly is it doing? If I have to use a worker thread to run long queries, I create thread in the URLHandler. Pass connection parameters to thread and prepare answer in Threads execute method. Then send answer in UrlHandler.FinishThread event. Should I call Finish at end of URLHandler.