Invoke garbage collector?

Steven Schveighoffer schveiguy at yahoo.com
Wed Feb 9 13:15:51 PST 2011


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


More information about the Digitalmars-d-learn mailing list