Re: PLS HELP - Unable to close a "stuck" thread
From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 01/21/05
- Next message: Dwight.Dexter_at_transcore.com: "Can I cast to a [Flags] enum?"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: Multiple referenced dlls"
- In reply to: MuZZy: "Re: PLS HELP - Unable to close a "stuck" thread"
- Next in thread: MuZZy: "Re: PLS HELP - Unable to close a "stuck" thread"
- Reply: MuZZy: "Re: PLS HELP - Unable to close a "stuck" thread"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 21 Jan 2005 21:12:08 +0100
Simply close the listener socket, the AcceptSocket will throw an exception
you simply can catch and as such terminate the thread.
Willy.
"MuZZy" <leyandrew@yahoo.com> wrote in message
news:1YCdnb9_wZDN2mzcRVn-qw@rcn.net...
> jeff wrote:
>> If you don't want to use async reads, then just shut the application.
>> The thread and the listener will be terminated by Windows.
>
> That's the problem - the listener thread isn't terminated, i still see th
> eprocess after i've closed the app
>
>
>
>>
>> "MuZZy" <leyandrew@yahoo.com> wrote in message
>> news:7uadnaAoxPXFnm3cRVn-tA@rcn.net...
>>
>>>I need to close listening thread when i close the app.
>>>Your suggestion about using async socks seems to be the only correct one.
>>>I just started looking into async use of sockets
>>
>>
- Next message: Dwight.Dexter_at_transcore.com: "Can I cast to a [Flags] enum?"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: Multiple referenced dlls"
- In reply to: MuZZy: "Re: PLS HELP - Unable to close a "stuck" thread"
- Next in thread: MuZZy: "Re: PLS HELP - Unable to close a "stuck" thread"
- Reply: MuZZy: "Re: PLS HELP - Unable to close a "stuck" thread"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|