|
-
Nov 4th, 2000, 11:54 AM
#1
Thread Starter
Lively Member
I have an array:
Dim MapTable(1 To 50, 1 To 12)
I was reading that each array element can hold 64K characters, AND the memory is reserved in advanced
I'm pretty sure this is wrong. but if I took
64K x 50 x 12
That would mean that array is hoggin 38Megs of RAM??????
Thanks for info
-
Nov 4th, 2000, 01:44 PM
#2
transcendental analytic
not at all, if that array you are using is an array of variants each elemnt will take up 16 bytes, for any numeric value and 22 bytes + string length for strings. So in case you don't have variable contents of the items i suggest you use the datatype you prefer to have the items stored as.
Also, an array requires 20 bytes + 4 bytes for each dimension + the amount of data each item require
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Nov 4th, 2000, 01:52 PM
#3
Thread Starter
Lively Member
I'm running ME now (missing 2K) - so I downloading a memory tool and took a look at how much memory the application was taking up.........
It didn't look that bad at all.
Thanks,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|