On Sunday, 8 February 2015 at 16:23:44 UTC, FG wrote:

2. "auto buf = new byte[](1024*1024*100);"
      now the gc can't free this buf.
      can i free it by manual?

Yes. import core.memory; GC.free(buf.ptr); // and don't use buf afterwards

That won't work, see:
http://forum.dlang.org/thread/uankmwjejsitmlmrb...@forum.dlang.org

Reply via email to