Link to home
Start Free TrialLog in
Avatar of Micki-Weaver
Micki-Weaver

asked on

is process active from process ID

any one have sample code for returning if a process (from process ID) is active/not hung
Avatar of PaulHews
PaulHews
Flag of Canada image

Determine if an Application has Stopped Responding
http://www.thescarms.com/vbasic/AppResponse.aspx
ASKER CERTIFIED SOLUTION
Avatar of felipecsl
felipecsl

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
           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").