Lenb() would be my best guesstimate also. Since it will store it in Unicode (dual byte code), it would make sense.
Im wondering...why do you need to measure memory? Scalability planning? Wouldn't such things as session useage, Ado useage, etc. make the biggest impact and such a significant different the APP variables would almost be negligable??? /rob -----Original Message----- From: Kevin Collins [mailto:kcollins@;art.com] Sent: Thursday, October 24, 2002 10:13 PM To: ActiveServerPages Subject: Measuring memory used in application variables Does the len() function in VBScript give you the actual amount of memory used for a string variable? Or should I use lenb(), which the docs say gives you the byte length. I wanted to see how much memory my application variables take up. So I wrote a script to print out the name, typename, and string length of each item in application.contents. The size reported by lenb() is twice as big as that reported by len(). Any ideas why? I saw a knowledgebase article that says VB stores strings internally as Unicode, so I was thinking maybe IIS does the same. Is there a better method of measuring memory used by application variables? Thanks, Kevin --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
