Solved

How to read process info with vb6

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now