Re: [twsocket] V6 ThreadDetach #2

2006-06-24 Thread Francois PIETTE
[EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, June 23, 2006 9:12 PM Subject: Re: [twsocket] V6 ThreadDetach #2 Francois PIETTE wrote: You get the session closed after calling ThreadDetach ? Yes, since I'm always stress testing. A client may disconnect at any

Re: [twsocket] V6 ThreadDetach #2

2006-06-23 Thread Francois Piette
: [twsocket] V6 ThreadDetach #2 Arno Garrels wrote: Francois PIETTE wrote: Not sure what you mean. The problem is that even if you call ThreadDetach (which is to make the component windowless) you cannot be sure that the component will not allocate another window handle somewhere

Re: [twsocket] V6 ThreadDetach #2

2006-06-23 Thread Arno Garrels
- From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, June 22, 2006 9:37 PM Subject: Re: [twsocket] V6 ThreadDetach #2 Arno Garrels wrote: Francois PIETTE wrote: Not sure what you mean. The problem is that even if you call ThreadDetach

Re: [twsocket] V6 ThreadDetach #2

2006-06-23 Thread Arno Garrels
PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, June 23, 2006 8:55 AM Subject: Re: [twsocket] V6 ThreadDetach #2 Already got it! It is as I wrote in my previous mail... procedure

Re: [twsocket] V6 ThreadDetach #2

2006-06-23 Thread Francois PIETTE
-- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Friday, June 23, 2006 8:55 AM Subject: Re: [twsocket] V6 ThreadDetach #2 Already got it! It is as I wrote in my previous mail

[twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
I have the following problem in V6: constructor TListenThread.Create(AServer: TMtWSocketServer); begin inherited Create(True); FreeOnTerminate := FALSE; FServer := AServer; FServer.ThreadDetach; end; procedure TListenThread.Execute; begin FServer.ThreadAttach;

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Francois Piette
support mailing twsocket@elists.org Sent: Thursday, June 22, 2006 3:20 PM Subject: [twsocket] V6 ThreadDetach #2 I have the following problem in V6: constructor TListenThread.Create(AServer: TMtWSocketServer); begin inherited Create(True); FreeOnTerminate := FALSE; FServer

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
- From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, June 22, 2006 3:20 PM Subject: [twsocket] V6 ThreadDetach #2 I have the following problem in V6: constructor TListenThread.Create(AServer: TMtWSocketServer); begin inherited Create

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Fastream Technologies
: Thursday, June 22, 2006 4:20 PM Subject: [twsocket] V6 ThreadDetach #2 :I have the following problem in V6: : : constructor TListenThread.Create(AServer: TMtWSocketServer); : begin :inherited Create(True); :FreeOnTerminate := FALSE; :FServer := AServer

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
and btnStop. Regards, SZ - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, June 22, 2006 4:20 PM Subject: [twsocket] V6 ThreadDetach #2 I have the following problem in V6: constructor TListenThread.Create(AServer

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Sent: Thursday, June 22, 2006 4:20 PM Subject: [twsocket] V6 ThreadDetach #2 I have the following problem in V6: constructor TListenThread.Create(AServer: TMtWSocketServer); begin inherited Create(True); FreeOnTerminate := FALSE; FServer := AServer

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
, June 22, 2006 4:20 PM Subject: [twsocket] V6 ThreadDetach #2 I have the following problem in V6: constructor TListenThread.Create(AServer: TMtWSocketServer); begin inherited Create(True); FreeOnTerminate := FALSE; FServer := AServer; FServer.ThreadDetach; end

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Francois PIETTE
] To: ICS support mailing twsocket@elists.org Sent: Thursday, June 22, 2006 6:59 PM Subject: Re: [twsocket] V6 ThreadDetach #2 Fastream Technologies wrote: I had the same problem. In my case, I had to post a message before ending the thread. There was pending messages that called GetHandle

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Frans van Daalen
: Thursday, June 22, 2006 8:01 PM Subject: Re: [twsocket] V6 ThreadDetach #2 Francois PIETTE wrote: This is surely not the problem, but WaitFor should be avoided when possible. It is known to create deadlocks. I already exchanged it by a simple WaitForSingleObject(ThreadHandle) since WaitFor

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
22, 2006 8:01 PM Subject: Re: [twsocket] V6 ThreadDetach #2 Francois PIETTE wrote: This is surely not the problem, but WaitFor should be avoided when possible. It is known to create deadlocks. I already exchanged it by a simple WaitForSingleObject(ThreadHandle) since WaitFor is know

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Francois PIETTE
Not sure what you mean. The problem is that even if you call ThreadDetach (which is to make the component windowless) you cannot be sure that the component will not allocate another window handle somewhere in the background after that call to ThreadDetach. I don't see how the component

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Francois PIETTE wrote: Not sure what you mean. The problem is that even if you call ThreadDetach (which is to make the component windowless) you cannot be sure that the component will not allocate another window handle somewhere in the background after that call to ThreadDetach. I don't

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Arno Garrels wrote: Francois PIETTE wrote: Not sure what you mean. The problem is that even if you call ThreadDetach (which is to make the component windowless) you cannot be sure that the component will not allocate another window handle somewhere in the background after that call to