What's the best way to watchdog a desktop application?

前端 未结 4 778
清歌不尽
清歌不尽 2020-12-01 05:39

I need some way to monitor a desktop application and restart it if it dies.

Initially I assumed the best way would be to monitor/restart the process from a Windows

4条回答
  •  忘掉有多难
    2020-12-01 06:15

    Found this lib written up on Code Project: https://www.codeproject.com/Tips/1054098/Simple-Csharp-Watchdog

    It was posted 3 years after the latest answer here, so adding it for record's sake.

    -- Addendum: Installed it in our app, and it works pretty well. Needed slight tweaking to support our use case, but the code is pretty solid and straight forward

提交回复
热议问题