> friday afternoon I outlined my new approach.
> Before implementing it I'd like to know if packing all creating and closing
> stuff in a dedicated thread (one for all sockets) with a message pump
> is okay (should work if implemented with some care).
Yes, it is OK. BUT make sure your code is exec
ncept correctly now?
Greetings and thanks for help so far
Markus
> -Ursprüngliche Nachricht-
> Von: Francois Piette [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 6. Februar 2006 08:37
> An: ICS support mailing
> Betreff: Re: [twsocket] closing socket socket
>
&g
> > ThreadDetach and ThreadAttach are implemented:
> > they save and check thread ID.
> Okay, but that is problematic for me.
Maybe, but you have to live with that.
Windows is working like that.
You can't change anything in the API.
--
[EMAIL PROTECTED]
http://www.overbyte.be
--
To unsubsc
>> > So I called DetachThread before Attach Thread, but now I get the
>> > exception that the socket cannot be detached.
>>
>> You can detach a socket from a thread only when you call
>> ThreadDetach within the same thread context
>> which called TreadAttach (or the creating thread context if
>> no
> -Ursprüngliche Nachricht-
> Von: Francois Piette [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 3. Februar 2006 11:21
> An: ICS support mailing
> Betreff: Re: [twsocket] closing socket socket
>
>
> > So I called DetachThread before Attach Thread, but now I
Humm, Markus wrote:
> Now I tried to attach the socket to the "new" thread just before calling
> shutdown.
> I got the exception then taht one cannot attach a socket which isn't
> detached.
> So I called DetachThread before Attach Thread, but now I get the
> exception that the
> socket cannot be de
nal Message -
From: "Humm, Markus" <[EMAIL PROTECTED]>
To:
Sent: Friday, February 03, 2006 10:15 AM
Subject: [twsocket] closing socket socket
> Hello,
>
> I tried something different now, but without success yet.
> After looking at which thread ids where involved I got the f
Hello,
I tried something different now, but without success yet.
After looking at which thread ids where involved I got the following
results:
- the socket is created in one thread
- the other thread is sending data over the socket, which works like a
charm
- the other thread then requests a clos