c# - how to test that the wpf gui thread is Alive -
i have modal wpf application , need way monitor if application still working , gui responding using other process cannot think of idea how can done.
on other applications raise "alive" event main loop don't have clear main loop in wpf app.
is adding dispatcher timer application raise event idea?
am converting comment answer on request.
i think you're looking process.responding
property. return whether ui responsive or not.
note: process.responding
cannot used process doesn't have ui.
if process has user interface, responding property contacts user interface determine whether process responding user input. if interface not respond immediately, responding property returns false. use property determine whether interface of associated process has stopped responding.
if process not have mainwindowhandle, property returns true.
for more info take @ process.responding
Comments
Post a Comment