Link to home
Start Free TrialLog in
Avatar of Guenter Haslinger
Guenter HaslingerFlag for Austria

asked on

How to read process info with vb6

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
Avatar of aikimark
aikimark
Flag of United States of America image

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.
Avatar of Guenter Haslinger

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial