Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Memory Size 3

Status
Not open for further replies.

alan232

Programmer
May 19, 2004
144
0
0
US
Hi All;

Does anybody know how to get the physical memory size of a terminate and stay resident object?

Just curious,
Thanks,
Alan
 
Open a DOS window, type MEM/c the TSR should be visible in its size. If you need to do that programatically in VFP, someone may have a solution for that, but if you're looking for a one-off, this will do it.


Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Start with something like this:
Code:
!MEM/c > c:\mem.txt
lcMem = FILETOSTR("c:\mem.txt")
That gives you a memvar holding the information you need. All you have to do is use AT() and SUBSTR() to find the size of the TSR.

Geoff Franklin
 
Hi ;

I get a nice print out--but nothing with the name of my service. Also, starting and stoping the service does not seem to change the amount of free memory available--so I really still don't know.

Ideas?
Alan
 
you work with windows service, it has mothing to do with DOS tsr.
Get a copy of sysinternals process explorer, it's free.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top