Solved

VB6 Need to display memory usage in program Any ideas?

Posted on 2010-11-12
2
656 Views
Last Modified: 2012-05-10
Need to display a warning if mememory usage gets over a certain limit for the program that is running.


Any ideas


0
Comment
Question by:peter3244
2 Comments
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 500 total points
ID: 34119683
You can use the GetProcessMemoryInfo API

GetProcessMemoryInfo Function
http://msdn.microsoft.com/en-us/library/ms683219(v=VS.85).aspx

Collecting Memory Usage Information For a Process
http://msdn.microsoft.com/en-us/library/ms682050(v=VS.85).aspx

0
 

Author Closing Comment

by:peter3244
ID: 34135049
This helped but ID:21019185 provided the full solution
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

914 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

20 Experts available now in Live!

Get 1:1 Help Now