I want my Memory back ;-)

dsimcha dsimcha at yahoo.com
Mon Jul 12 17:55:16 PDT 2010


== Quote from ABothe (info at alexanderbothe.com)'s article
> Hi everyone,
> I don't know if it's a bug or not .. but D or at least its GC doesn't want to
> free my allocated stuff! Also when I 'disable' the GC via GC.disable(); it
> won't free it :-/
> byte[] asdf=new byte[50_000_000]; // OK a bit much---but it's an example value
> GC.free(&asdf); // It doesn't work!!
> delete asdf; // Also, without GC.free, doesn't work!!!
> So...please give me a solution for this, D people :-D
> --Alex

GC.free(cast(void*) asdf.ptr);


More information about the Digitalmars-d mailing list