On Thursday, 9 February 2017 at 12:13:36 UTC, Daniel Kozák wrote:
V Thu, 09 Feb 2017 11:22:28 +0000
Suliman via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
napsáno:

Docs says that:
"The total size of a static array cannot exceed 16Mb."
But when I am creation array of:
int [1000_000] x; // 1000_000 is equal ~ 0,95MB
app crush on start.

Should it's reserve this memory with guaranty? I mean that after app start it should take +0.95MB of RAM in task manager.

First of all it is 4bytes * 1000_000 = 4000_000 bytes = 4kbyte, and it should not crash, are you sure this is the reason why app crash?

s/kbyte/megabyte


Reply via email to