开发者

On failure (if the app fails)

开发者 https://www.devze.com 2023-01-16 14:41 出处:网络
I have an app and it fails randomly sometimes because m开发者_如何学运维y internet is not so fast (my app uses the webbrowser). How can I make my app restart itself it it fails? Or make my app click b

I have an app and it fails randomly sometimes because m开发者_如何学运维y internet is not so fast (my app uses the webbrowser). How can I make my app restart itself it it fails? Or make my app click button1 on my form if it fails.


I have had similar problems in the past. I solved it by using scheduled tasks to start the app on a regular basis. On Startup the new version would attempt to stop the old version and if that failed, (because it was hung) it would kill the process of the old program.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号