Re: PLS HELP - Unable to close a "stuck" thread

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 01/21/05


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



Relevant Pages

  • Re: Demonstrating that 0.999... = 1
    ... >It depends on the fact that the listener believes that when you ... Or that it might suddenly terminate? ... It sounds like pure waffle. ... process that can be easily shown to yield a certain result, in fact yields the ...
    (sci.math)
  • Re: radioshow transcript #1
    ... pinball personalities to ever exist. ... No, No Mutt, I meant Budweiser, besides, you are not my bud. ... Jeff, don't talk about our listener like that. ...
    (rec.games.pinball)
  • Re: radioshow transcript #1
    ... pinball personalities to ever exist. ... No, No Mutt, I meant Budweiser, besides, you are not my bud. ... Jeff, don't talk about our listener like that. ...
    (rec.games.pinball)
  • Re: BizTalk 2004: Question on orchestration
    ... The orchestration is catching exceptions properly. ... terminate shape after the receive port of error log web service. ... HAT as suspended resumable. ... Perhaps the exception was uncaught. ...
    (microsoft.public.biztalk.general)
  • Re: BizTalk 2004: Question on orchestration
    ... actually hit your terminate shape. ... Perhaps the exception was uncaught. ... I think the orchestration will not terminate during adapter error, ... instead will suspend it. ...
    (microsoft.public.biztalk.general)