Has somebody made a surveillance thread which doesn't die?
- From: "lagu2653 via DotNetMonster.com" <u27739@uwe>
- Date: Thu, 25 Oct 2007 12:38:14 GMT
I have a log-in window application. When the user presses the cancel button
it kills another window by it's name and then it exits. The problem is that
if somebody kills the log-in window by terminating the process in the task
manager the other window is not killed.
One solution might be to have a surveillande thread which doesn't die when
the mother-thread dies, and can't be killed in the task manager. As soon as
the log-in window thread stops responding to surveillance messages it will
kill the other window and then exit.
Is this possible?
I've also tried to have a form which spawns another form, but in the Task
Manager there is only one entry (PasswordDialog.exe). If you kill this
process everything dies and the window which I want to kill when the log-in
window dies is not killed.
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-csharp/200710/1
.
- Follow-Ups:
- Re: Has somebody made a surveillance thread which doesn't die?
- From: Peter Duniho
- Re: Has somebody made a surveillance thread which doesn't die?
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Has somebody made a surveillance thread which doesn't die?
- Prev by Date: Re: Backgroundworker
- Next by Date: Re: Stream radio on website
- Previous by thread: Reflection - method parameter marked as "out" doesn't have a BaseType
- Next by thread: Re: Has somebody made a surveillance thread which doesn't die?
- Index(es):
Relevant Pages
|