Click here to Skip to main content
15,887,930 members
Home / Discussions / C#
   

C#

 
QuestionKilling the Processes Using process.Kill() restarts the system Pin
Neeraj Kr13-Jun-08 1:36
Neeraj Kr13-Jun-08 1:36 
AnswerRe: Killing the Processes Using process.Kill() restarts the system Pin
Ashfield13-Jun-08 2:08
Ashfield13-Jun-08 2:08 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Neeraj Kr13-Jun-08 2:42
Neeraj Kr13-Jun-08 2:42 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Simon P Stevens13-Jun-08 2:51
Simon P Stevens13-Jun-08 2:51 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Neeraj Kr13-Jun-08 2:55
Neeraj Kr13-Jun-08 2:55 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Simon P Stevens13-Jun-08 3:04
Simon P Stevens13-Jun-08 3:04 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Neeraj Kr13-Jun-08 3:08
Neeraj Kr13-Jun-08 3:08 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Simon P Stevens13-Jun-08 3:22
Simon P Stevens13-Jun-08 3:22 
What the third party app will be doing is only killing non-critical processes.

Find out the real requirements from your customer. They don't really want to kill all processes, because that will cause a system restart. Find out what they actually want.

I suspect they want something like, close all open applications. In which case, you need to find a way of only closing user apps and not just blindly killing all system processes.

You should probably be using process.Close() instead of kill. This gives the exiting processes a chance to clean up their data.

Either way, the important point here is to ask the client what they actually want and why they want to do it.

Simon

GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Neeraj Kr13-Jun-08 2:55
Neeraj Kr13-Jun-08 2:55 
AnswerRe: Killing the Processes Using process.Kill() restarts the system Pin
User 665813-Jun-08 2:39
User 665813-Jun-08 2:39 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Neeraj Kr13-Jun-08 2:47
Neeraj Kr13-Jun-08 2:47 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Dan Neely13-Jun-08 3:03
Dan Neely13-Jun-08 3:03 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Neeraj Kr13-Jun-08 3:50
Neeraj Kr13-Jun-08 3:50 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Ashfield13-Jun-08 3:02
Ashfield13-Jun-08 3:02 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
Neeraj Kr13-Jun-08 3:35
Neeraj Kr13-Jun-08 3:35 
GeneralRe: Killing the Processes Using process.Kill() restarts the system Pin
leppie13-Jun-08 3:50
leppie13-Jun-08 3:50 
QuestionEvent gets interrupted Pin
Member 447129213-Jun-08 1:25
Member 447129213-Jun-08 1:25 
AnswerRe: Event gets interrupted Pin
Guffa13-Jun-08 1:51
Guffa13-Jun-08 1:51 
GeneralRe: Event gets interrupted Pin
Member 447129213-Jun-08 3:10
Member 447129213-Jun-08 3:10 
QuestionHow to handle the event of killing a process from task manager??? Pin
Bins Davis13-Jun-08 1:24
Bins Davis13-Jun-08 1:24 
AnswerRe: How to handle the event of killing a process from task manager??? Pin
Simon P Stevens13-Jun-08 3:15
Simon P Stevens13-Jun-08 3:15 
GeneralRe: How to handle the event of killing a process from task manager??? Pin
Bins Davis15-Jun-08 20:54
Bins Davis15-Jun-08 20:54 
QuestionMDI Parent won't allow Child maximise Pin
Yosh_13-Jun-08 1:14
professionalYosh_13-Jun-08 1:14 
AnswerRe: MDI Parent won't allow Child maximise Pin
DaveyM6913-Jun-08 3:45
professionalDaveyM6913-Jun-08 3:45 
QuestionProblem removing edges Pin
Gareth H13-Jun-08 0:13
Gareth H13-Jun-08 0:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.