Freeing of memory (garbage collection)

bearophile bearophileHUGS at lycos.com
Tue Dec 9 18:26:30 PST 2008


Steven Schveighoffer:
> One thing you can do, that nobody has mentioned yet, is delete memory that 
> you have allocated using the GC.

Leaving the GC manage and free your memory is usually OK. Managing manually your memory allocated from the C heap is doable. But freeing manually and forcefully memory allocated by the GC seems dangerous to me.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list