Link to home
Start Free TrialLog in
Avatar of k heitz
k heitz

asked on

Method to time an unresponsive exe

Dear Experts.
I have a vb6 application that uses web service calls. Occasionally, on various systems, this app will become non-responsive. It never recovers and user must kill in Task Manager and restart.

I'd like to find an external service/product that initiates time at the beginning of the service call, and tracks how much time it takes until service responds. If a threshold is exceeded, I'd like the external timer to alert user and offer an 'abort' option on the service call.

I'm willing to build my own but am not sure of the best method. Samples would be welcome.

Thank you
klheitz
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

Could you show your web service call code please?
Avatar of k heitz
k heitz

ASKER

Hi MartinLiss ~
The plot thickens:

After more analysis I've found the hang must be happening w/n the exe (vs. w/ the service call). I write out a data file directly before calling the service and have found the offending line was not in that file.

This indicates the hang happens before ever getting to that point.

This changes my request to a service/method that can ID which routine my .exe is hanging in. I have error processing thru out the exe to output errors as well as send up a prompt on errors ~ but this appears to be some kind of infinite loop.

It doesn't happen consistently or on any given usage; and (just to complicate things) seems only to happen on systems using the service calls ~ one other potential clue is when a given system hangs, it is when the services/online d/b are being hit by multiple systems.

I'm wondering if it is somehow related to CPU or memory usage - and if there's any way I can track - and possibly circumvent - perhaps some way to tell my exe to wait til there's a certain amount of CPU or mem free before continuing (?).

I've attached a sample of my service call codes w/ some add'l information in a .doc if you find them useful.

Thanks for you help!
ServiceCall.doc
ASKER CERTIFIED SOLUTION
Avatar of eemit
eemit
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi klheitz,
Was this helpful?
Do you need more information or help?