• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 827
  • 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 FiedererCommented:
           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

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

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