[twsocket] tThrdSrv

2007-04-27 Thread Gary Stafford
Hi, I have an application which is basically a modified version of the tthrdsrv application which works except for the following. In the tTcpSrvForm.WsocketClientConnect (Main Thread) I add a tTabSheet to a tPageControl for each connection which works ok. In

Re: [twsocket] tThrdSrv

2007-04-27 Thread Arno Garrels
I think the comment in the demo is not correct. Actually OnClientConnect is triggered in worker thread context. You can easily check the thread context by calling Windows.GetCurrentThreadID. So probably event OnClientCreate was the place to add the new tab. -- Arno Garrels [TeamICS]

Re: [twsocket] tThrdSrv

2007-04-27 Thread Arno Garrels
Arno Garrels wrote: I think the comment in the demo is not correct. Actually OnClientConnect is triggered in worker thread context. You can easily check the thread context by calling Windows.GetCurrentThreadID. So probably event OnClientCreate was the place to add the new tab. Please forget