Link to home
Start Free TrialLog in
Avatar of shahidi
shahidi

asked on

Memory used by My app

I can get the total memory or free memory using APIs.

I need some API to get the memory used by MY APPLICATION.

Avatar of wsh2
wsh2

As Visual Basic dynamically uses / frees memory as it runs.. getting just the MY APPLICATION memory requirements is NOT going to be easy. The best you can do is take a Free Memory reading in an empty machine before loading your program, and then do a Free Memory API in your program after loading everything you possibly have in it.

Additionally please note.. that some of the underlying DLL's that VB uses are shared between multiple instances of running VB applications. If you Load MY APPLICATION once.. take a memory reading.. and then Load it a second time.. the memory usage readings in the second instance will be less as it is sharing resources that were loaded by the first instance of MY APPLICATION.

Avatar of shahidi

ASKER

OK can i get the memory used by one process...
Thanks
ASKER CERTIFIED SOLUTION
Avatar of wsh2
wsh2

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