Solved

How to read process info with vb6

Posted on 2014-11-03
3
143 Views
Last Modified: 2015-08-10
Hello

I am developing with VB6. My application runs in an endless loop and looks
for new eamils via pop3 every 5 minutes. I am using the EAGetMail component.

At start time my application uses ~ 300 handles (shown in the task manager)
Unfortunately after some days the number of handles has increased up to
30000 and i don't know why .........

Question:
How can I read all process info like shown in task manager (memory, threads, handles, etc.)
and write this information to my log file.

I have googled for more than 1 hour without having anything usefull found...

Thx in advance

günter
0
Comment
Question by:haslinger
  • 2
3 Comments
 
LVL 45

Expert Comment

by:aikimark
ID: 40419682
Sounds like you are creating a new thread with every iteration and not cleaning up afterwards.  According to my math, your process is creating 288 threads a day (86400/300 = 288).  You will need to post your database or code for further analysis.
0
 

Author Comment

by:haslinger
ID: 40420286
Thx for your fast reply.

Posting all my code is not possible, the application is communicating with
many 3rd party components, a mail component i mentioned , another
one is a large control center system component and so on....

I want to know how I can log the process information (memory, handles, etc....)
on some certain places in my code. Something like the process class ....

As I mentioned my development framework is VB6

Thx
günter
0
 
LVL 45

Accepted Solution

by:
aikimark earned 500 total points
ID: 40420307
You don't need to post all your code, just the part related to email.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Let’s list some of the technologies that enable smooth teleworking. 
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

840 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