Jump to content
Sign in to follow this  
RawrOmg

Check if a program is frozen or sending and recieving data or not.

Recommended Posts

RawrOmg

Im making a server restarter for a steam game.

It uses a program called srcds.exe to run the server and I want to check if the server goes down or not or if it freezes up

When it goes down or freezes up I want it to execute a function...Any way to do it??

Share this post


Link to post
Share on other sites
Inverted

Maybe you could use ProcessGetStats every few seconds in your loop (in the other thread you made) and compare the results with the previous ones. And if the "operations" count hasn't changed then it's frozen ?

Could be hard to test though.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.