singo wrote:When I run this code the Totals don't change as expected, but either do the Avail after declaring the array.
I must be misunderstanding the way memory works or is allocated OR the functions don't work the way I would expect them to. Can someone explain ?
According to my understanding, at the time the memory is reserved it doesn't actually use physical memory. If it is not used, i.e. by assigning it a value, it doesn't use any physical memory and so shouldn't affect the total available.
To apply this with regard to an array, check the available memory after values are assigned and not at the point of the Dim statement.
singo wrote:When I run this code the Totals don't change as expected, but either do the Avail after declaring the array.
I must be misunderstanding the way memory works or is allocated OR the functions don't work the way I would expect them to. Can someone explain ?
According to my understanding, at the time the memory is reserved it doesn't actually use physical memory. If it is not used, i.e. by assigning it a value, it doesn't use any physical memory and so shouldn't affect the total available.
To apply this with regard to an array, check the available memory after values are assigned and not at the point of the Dim statement.
Thanks Demivec, that does make a difference so I will pursue real time monitoring with values.
Singo
XP PB 4.51
Singo
Win10, Win7, Debian x86 & OSX ~ PB 5.70 LTS
Minimbah NSW Australia