Re: "Memory allocation failed" on big array

2022-07-20 Thread urned utt via Digitalmars-d-learn
Big thank. Switch to /bin64 and now works until full memory using.

Re: "Memory allocation failed" on big array

2022-07-20 Thread ryuukk_ via Digitalmars-d-learn
My guess is you are compiling to 32bit and the GC tries to reserve >4gb wich it can't, therefore out of memory Compiling to 64bit with: `dmd -m64 -run test.d` works no problem

"Memory allocation failed" on big array

2022-07-20 Thread urned utt via Digitalmars-d-learn
Hello. having about 6 Gb free RAM, trying to execute: ```d string[] dic; for (int i = 0; i < 100_000_000; i++) { dic ~= "just a word number "~to!string(i); if (i%1_000_000 == 0) { writef("processed line %s: %s\n", format("%,3d", i), format("%,3d",