Apparent problem with GC not collecting on Windows
Michael
pr at m1xa.com
Wed Nov 28 14:02:34 PST 2012
1. Can be solved using allocators
http://dlang.org/memory.html#newdelete and
http://dlang.org/class.html#ClassAllocator (here deprecated)?
2. Why with
class Too
{
private uint[] pp;
this(int s)
{
pp = new unit[s];
}
alias pp this;
}
Only 3 iterations before out of memory exception?
3. Why it helps?
foreach (i; 0 .. 10) {
file.rawRead(data);
}
GC.free(data.ptr);
Win 8 Pro, 64 bit.
More information about the Digitalmars-d-learn
mailing list