Invoke garbage collector?

Sean Eskapp eatingstaples at gmail.com
Wed Feb 9 17:57:39 PST 2011


== Quote from Steven Schveighoffer (schveiguy at yahoo.com)'s article
> On Wed, 09 Feb 2011 15:58:13 -0500, bearophile <bearophileHUGS at lycos.com>
> wrote:
> > Sean Eskapp:
> >
> >> so is there a way to invoke a GC cleanup in some way?
> >
> > http://www.digitalmars.com/d/2.0/phobos/core_memory.html#minimize
> This attempts to minimize memory, it does not run a collection cycle (I
> don't think anyways).  To invoke the GC collector, use:
> http://www.digitalmars.com/d/2.0/phobos/core_memory.html#collect
> -Steve

Works great, thanks!


More information about the Digitalmars-d-learn mailing list