GC and memory leaks

Janice Caron caron800 at googlemail.com
Sun Nov 11 09:01:22 PST 2007


On 11/11/07, Ald Sannes <aldarri_s at yahoo.com> wrote:
> I speculate that, despite gc.noRoots calls in the zlib wrapper, the memory leak happens there; the raw data in array is being taken for pointers that point literally everywhere, thus no memory is ever deallocated.

If that's true, you may be able to fix it by making your array a
ubyte[] instead of a void[]. void arrays can contain pointers; ubyte
arrays cannot.



More information about the Digitalmars-d mailing list