Deallocate array?

Juan Manuel Cabo juanmanuel.cabo at gmail.com
Tue May 7 19:45:09 PDT 2013


>
> Why isn't the memory deallocating?

The memory might be free, but still not released to the OS.

Especially in windows, when you free memory it still isn't freed 
from
your process.
But you can reuse it in your program if the GC has collected it.

The correct test would be to copy and paste the same code below, 
and see if it
stays at 150Mb or it jumps to 300Mb.

If it jumps to 300Mb, then the GC hasn't collected it.

If it stays at 150Mb, the GC had collected it but windows didn't 
claim it.

--jm



More information about the Digitalmars-d-learn mailing list