Best properly way to destroy a 2 dimensional array?

Andrea Fontana via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 7 03:02:05 PDT 2016


On Wednesday, 6 April 2016 at 20:30:33 UTC, Jonathan Villa wrote:
> On Wednesday, 6 April 2016 at 19:54:32 UTC, Jonathan Villa 
> wrote:
>> I wrote a little program that given some number it generates a
>
> TL;DR: My program generates a very large `ubyte[][]`, and after 
> I call destroy and GC.collect() and GC.minimize(), the memory 
> occuping doesn't seems to decrease.

Anything change if you wrap your code like:


while ...
{
...
    {
       ubyte[][] ...
       ...
    }

    GC.collect();
    GC.minimieze();
}

?


More information about the Digitalmars-d-learn mailing list