Monitor memory usage VB6

User avatar
agibsonsw
SilverLounger
Posts: 2403
Joined: 05 Feb 2010, 22:21
Location: London ENGLAND

Monitor memory usage VB6

Post by agibsonsw »

Hello again.
Is there a tool to monitor memory usage while running a VB6 program?
I believe the person asking wants to gauge the penalty in using large arrays, etc.
There are a lot of VB6 tools available - Process Viewer, ROT Viewer - but I don't know
what they're for.

Thanks, Andy.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Monitor memory usage VB6

Post by HansV »

The Processes tab of the Task Manager built into Windows displays the amount of memory used by programs and processes.
Best wishes,
Hans

User avatar
agibsonsw
SilverLounger
Posts: 2403
Joined: 05 Feb 2010, 22:21
Location: London ENGLAND

Re: Monitor memory usage VB6

Post by agibsonsw »

Hello and thank you.
I did mention that, but wondered if any of the VB6 tools that I see listed in my menu do something
similar (and more specific to VB6)?
Alternatively, I was thinking they could just send the time and the procedure name to the debug window
at specific points in the code?
Thanks again, Andy.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Monitor memory usage VB6

Post by HansV »

The article Determine memory usage contains code that will return memory usage; you could tweak this for your purposes.

You might also be able to use Using PSAPI to get a complete task list and memory usage.
Best wishes,
Hans

User avatar
agibsonsw
SilverLounger
Posts: 2403
Joined: 05 Feb 2010, 22:21
Location: London ENGLAND

Re: Monitor memory usage VB6

Post by agibsonsw »

Thanks, I'll have a look at these. Andy.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.