Identify hang/freeze state of a desktop application

Can we Identify hang/freeze state of a desktop application

Not easily. There are things you can do…

does it change the header? (e.g. to not responding)
are there log files that you could analyse to identify whether the application is working?
Can you just use a timeout to give up after X minutes and just give it a reboot?

RD

As of now I have put a timeout.The window name gets changed to x- Not responding(I believe this window name I can use but for the entire duration of the process I will have to keep checking that, please correct me if I am wrong, also how can I do this checking for the window name to change to not responding parallel to process execution)