I want to create a static array large enough to store 1MB of float values.
What am I doing wrong?
Here is a sample code with notes:

void main(string[] args) {
        enum size_t COUNT = 1024 * 512 / float.sizeof; // works OK :)
//enum size_t COUNT = 1024 * 512 * 2 / float.sizeof; // constantly crashes :(
        float[COUNT] arr;
        writeln(arr.length);
}

DMD: 2069.2
OS: Win 8.1 Pro

Reply via email to