Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Determine memory usage of objects (like Dictionary)

I want to write a VBA procedure to determine the size (in RAM) of an
object, e.g., a Scripting.Dictionary. Is there anyway to do this?

If there is no direct way, perhaps it is possible to run some simple
diagnostics like check how much memory VBA has allocated, dim a new
dictionary, check memory allocation again, add 1000 items, check
allocation again... just to get a sense of how much overhead is
involved with the object. Can this be done?

ANy help would be appreciated!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Determine memory usage of objects (like Dictionary)

You can use the following properties to determine memory usage before and
after your call to the scripting dictionary

application.memoryfree
application.memorytotal
application.memoryused


--
http://HelpExcel.com
1-888-INGENIO
1-888-464-3646
x0197758


"R Avery" wrote:

I want to write a VBA procedure to determine the size (in RAM) of an
object, e.g., a Scripting.Dictionary. Is there anyway to do this?

If there is no direct way, perhaps it is possible to run some simple
diagnostics like check how much memory VBA has allocated, dim a new
dictionary, check memory allocation again, add 1000 items, check
allocation again... just to get a sense of how much overhead is
involved with the object. Can this be done?

ANy help would be appreciated!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor memory usage JL Links and Linking in Excel 1 May 16th 05 10:05 PM
Monitor memory usage JL Excel Discussion (Misc queries) 0 May 13th 05 04:15 PM
Memory Usage Paul Johnson[_2_] Excel Programming 0 January 28th 05 08:22 PM
Memory usage Jac Tremblay[_3_] Excel Programming 4 October 26th 04 02:33 PM
VBA & Solver Memory Usage Dana DeLouis[_5_] Excel Programming 1 July 13th 03 04:58 AM


All times are GMT +1. The time now is 06:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"