Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I measure resources?

Status
Not open for further replies.

tedsmith

Programmer
Nov 23, 2000
1,762
AU
I have written quite a large control application that occasionally for no apparent reasons exhibits a lack of resources (slowing down and white boxes appearing instead of controls). I can't pin down what is happening as it only happens now and then when I am not there! The computer is restarted each day (Win2000).
Is there a simple way of indicating on a vb6 form the available resources like the Microsoft resource meter? I could then store a progressing report for later.
This would be handy to spot problems before they become a real problem and freeze the computer in the middle of an operation.
I have used the API routine that tells you remaining available physical memory for memory leaks but this does give me the resources leakage which may be due to a routine calling itself in certain circumstances or other reason.
It is possible to have considerable physical memory remaining but no resources left.
I have 5 coms ports and 17 TCPIP ports controlling other computers all operating randomly at once and I suspect it might be one com port sub running while another is in the middle of accumulating it's data into a string. While I have all variables independent I hope this is not another microsoft fault!
Thanks Ted
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top