?
Solved

Method to time an unresponsive exe

Posted on 2012-04-09
5
Medium Priority
?
281 Views
Last Modified: 2012-06-02
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
0
Comment
Question by:k heiutz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 49

Expert Comment

by:Martin Liss
ID: 37828256
Could you show your web service call code please?
0
 

Author Comment

by:k heiutz
ID: 37828474
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
0
 
LVL 15

Accepted Solution

by:
eemit earned 1500 total points
ID: 37830564
Hi klheitz,
MSXML2.XMLHTTP does not support timeouts.
You can try some workarounds e.g.:
MSXML2.XMLHTTP with a TimeOut Value

Try to use:
Msxml2.ServerXMLHTTP, winhttp.dll, wininet.dll or winsock API-s instead
0
 
LVL 15

Expert Comment

by:eemit
ID: 38025222
Hi klheitz,
Was this helpful?
Do you need more information or help?
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question