Can't free memory on exiting?

bearophile bearophileHUGS at lycos.com
Mon Oct 31 22:12:50 PDT 2011


Andrej Mitrovic:

> Otherwise if you want to use the GC there's no point in calling
> GC.free in the destructor since the GC will do that automatically.

And if the OP wants some determinism in the dellocation of the memory allocated with malloc, the OP has to use a struct (scope classes used to give the same determinism, but they are deprecated).

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list