is it a bug or what?
collerblade via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jan 22 05:44:41 PST 2015
Dear D user, i have this code:
import core.sys.windows.windows;
real[] a;
while(1) {
a.length=4096*4096;
a=null;
Sleep(2000);
}
It allocates memory, but its never gets freed, just keep going
up, and after 10 secs, memoryexception is thrown. I checked the
pointer it is GC safe (attributes is 10). Am i missing something?
TY: collerblade
More information about the Digitalmars-d
mailing list