• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 836
  • Last Modified:

is process active from process ID

any one have sample code for returning if a process (from process ID) is active/not hung
0
Micki-Weaver
Asked:
Micki-Weaver
1 Solution
 
PaulHewsCommented:
Determine if an Application has Stopped Responding
http://www.thescarms.com/vbasic/AppResponse.aspx
0
 
felipecslCommented:
Process p = System.Diagnostics.Process.GetProcessById(myProcessID);
if(p.Responding)
{
     //process is active!
}
0
 
Jens FiedererTest Developer/ValidatorCommented:
           System.Diagnostics.Process.GetCurrentProcess().Responding

will give you the Systems id of whether it is hung or not (really whether the UI has been responsive).

There is no way to solve the problem correctly in general (see the "Halting Problem").
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now