| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
c# checking if application running
|
Original Message
|
Name: coolkang
Date: March 29, 2005 at 00:39:10 Pacific
Subject: c# checking if application runningOS: xpCPU/Ram: 512 |
Comment: Hello I have been trying to ckeck if a application is running by using this code Process[] pname = Process.GetProcessesByName("notepad"); if (pname.Length == 0) MessageBox.Show("nothing"); else MessageBox.Show("run"); but i'm keep on getting is error. An unhandled exception of type 'System.InvalidOperationException' occurred in system.dll Additional information: Couldn't get process information from remote machine. Does anybody know how to get this to work. I'm have .net framework1.1 and winxp pro sp2 thank you in advance. Coolkang
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: Chi Happens
Date: March 29, 2005 at 06:58:25 Pacific
|
Reply: (edit)hmmm, very stange. it worked for me exactly as you have typed it. (i copied and pasted from your post) It might be that your framework is corrupted. Try reinstalling it. Hope this helps, Chi They mostly come at night...mostly
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home