Solved

How to read process info with vb6

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
control image tags in a string ? 12 129
Plain Text Editor for iPad 6 75
EDI Solution or comparable? 2 35
Query group by data in SQL Server - cursor? 3 31
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

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