Click here to Skip to main content
16,007,277 members
Home / Discussions / C#
   

C#

 
QuestionClosing only the applications, not the windows processes Pin
teknolog12320-Jun-10 9:56
teknolog12320-Jun-10 9:56 
AnswerRe: Closing only the applications, not the windows processes Pin
Luc Pattyn20-Jun-10 10:03
sitebuilderLuc Pattyn20-Jun-10 10:03 
GeneralRe: Closing only the applications, not the windows processes Pin
teknolog12320-Jun-10 10:11
teknolog12320-Jun-10 10:11 
GeneralRe: Closing only the applications, not the windows processes Pin
Luc Pattyn20-Jun-10 10:17
sitebuilderLuc Pattyn20-Jun-10 10:17 
GeneralRe: Closing only the applications, not the windows processes Pin
teknolog12320-Jun-10 10:21
teknolog12320-Jun-10 10:21 
GeneralRe: Closing only the applications, not the windows processes Pin
Luc Pattyn20-Jun-10 10:29
sitebuilderLuc Pattyn20-Jun-10 10:29 
GeneralRe: Closing only the applications, not the windows processes Pin
teknolog12321-Jun-10 2:25
teknolog12321-Jun-10 2:25 
AnswerRe: Closing only the applications, not the windows processes Pin
Luc Pattyn21-Jun-10 2:43
sitebuilderLuc Pattyn21-Jun-10 2:43 
Hi,

a Process is an object that describes a process (note the leading capital). When two Processes are the same, so are the processes; when two Processes are different, they can still point to one and the same process. So you have discovered GetProcesses creates an array of all new Process instances...

I did suggest you compare process IDs, as those are unique; your code doesn't do that.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use < PRE > tags for code snippets, it preserves indentation, and improves readability.


GeneralRe: Closing only the applications, not the windows processes Pin
teknolog12321-Jun-10 3:08
teknolog12321-Jun-10 3:08 
GeneralRe: Closing only the applications, not the windows processes Pin
Luc Pattyn21-Jun-10 3:12
sitebuilderLuc Pattyn21-Jun-10 3:12 
GeneralRe: Closing only the applications, not the windows processes Pin
teknolog12321-Jun-10 23:47
teknolog12321-Jun-10 23:47 
GeneralRe: Closing only the applications, not the windows processes Pin
PIEBALDconsult20-Jun-10 17:06
mvePIEBALDconsult20-Jun-10 17:06 
QuestionHelp me please ... Pin
SRJ9220-Jun-10 7:30
SRJ9220-Jun-10 7:30 
AnswerRe: Help me please ... Pin
Xmen Real 20-Jun-10 8:11
professional Xmen Real 20-Jun-10 8:11 
AnswerRe: Help me please ... Pin
dan!sh 20-Jun-10 9:18
professional dan!sh 20-Jun-10 9:18 
GeneralRe: Help me please ... Pin
SRJ9220-Jun-10 11:03
SRJ9220-Jun-10 11:03 
AnswerRe: Help me please ... Pin
DaveyM6920-Jun-10 10:00
professionalDaveyM6920-Jun-10 10:00 
QuestionSingleton Pattern Alternative Pin
Brendan Vogt20-Jun-10 4:33
Brendan Vogt20-Jun-10 4:33 
AnswerRe: Singleton Pattern Alternative Pin
Not Active20-Jun-10 4:50
mentorNot Active20-Jun-10 4:50 
GeneralRe: Singleton Pattern Alternative Pin
Brendan Vogt20-Jun-10 5:10
Brendan Vogt20-Jun-10 5:10 
GeneralRe: Singleton Pattern Alternative Pin
Not Active20-Jun-10 9:25
mentorNot Active20-Jun-10 9:25 
AnswerRe: Singleton Pattern Alternative Pin
PIEBALDconsult20-Jun-10 7:12
mvePIEBALDconsult20-Jun-10 7:12 
GeneralRe: Singleton Pattern Alternative Pin
J4amieC20-Jun-10 22:08
J4amieC20-Jun-10 22:08 
GeneralRe: Singleton Pattern Alternative Pin
PIEBALDconsult21-Jun-10 2:47
mvePIEBALDconsult21-Jun-10 2:47 
AnswerRe: Singleton Pattern Alternative Pin
yu-jian27-Jun-10 10:05
yu-jian27-Jun-10 10:05 

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.