Updater App Block - can't kill thread
From: Marty McDonald (mcdonama_at_wsdot.wa.gov)
Date: 03/15/04
- Previous message: Andersen: "Call for presentation, ECOOP'04 practitioners report"
- Next in thread: [MSFT]: "RE: Updater App Block - can't kill thread"
- Reply: [MSFT]: "RE: Updater App Block - can't kill thread"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 15 Mar 2004 14:25:21 -0800
My ApplicationManager object is running in a thread called _updaterThread.
I'm unable to kill it. After this code executes, I can still see the
process in Task Manager. Is this the proper way to kill it? Do I have to
call _updaterThread.Abort ?
_updater.StopUpdater();
if( null != _updaterThread )
{
// join the updater thread with a suitable timeout
bool isThreadJoined = _updaterThread.Join( UPDATERTHREAD_JOIN_TIMEOUT );
// check if we joined, if we didn't interrupt the thread
if( !isThreadJoined )
{
_updaterThread.Interrupt();
}
_updaterThread = null;
}
- Previous message: Andersen: "Call for presentation, ECOOP'04 practitioners report"
- Next in thread: [MSFT]: "RE: Updater App Block - can't kill thread"
- Reply: [MSFT]: "RE: Updater App Block - can't kill thread"
- Messages sorted by: [ date ] [ thread ]