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
...@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: "Busai Péter" To: "'ICS support mailing'" Sent: Sunday, January 30, 2011 3:28 PM Sub

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