Solved

How to read process info with vb6

Posted on 2014-11-03
3
151 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
[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
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Viewers will learn how to use the Hootsuite Dashboard.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

752 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