As an experiment I created a program in Delphi which simply instantiates an array and continually increases its size (populating it simultaneously) until an EOutOfMemory expection is raised. When monitoring my PC's physical memory, the capacity only reaches about 80%. Why does it not reach 100 %?
Asked
Active
Viewed 54 times
0
-
That is [1.3GB](https://stackoverflow.com/q/14186256/11683), isn't it? – GSerg Aug 15 '18 at 11:52
-
The index refers to the number of items which the array could store before the error was raised. – Toby Dobbs Aug 15 '18 at 12:10
-
And the items in question happen to be bytes? – GSerg Aug 15 '18 at 13:06
-
Yes, of the Byte type in Delphi/Pascal. – Toby Dobbs Aug 15 '18 at 13:37
-
So this number of Bytes is in fact [1.3GB](https://stackoverflow.com/q/14186256/11683)? – GSerg Aug 15 '18 at 13:53
-
Yes, I suppose it would be if converted. – Toby Dobbs Aug 15 '18 at 15:09