Debugging memory leak.

Sean Kelly sean at f4.ca
Mon Oct 8 09:22:54 PDT 2007


David Brown wrote:
> 
> Ideas for possibly fixing this:
> 
>   - Manually 'delete' these buffers.  In my instance, this wouldn't really
>     be all that difficult since I know when they go out of use.
> 
>   - Call std.gc.hasNoPointers(void*) on the block.  I would think this is
>     the case for a char[], but std.zlib.compress uses a void[], which the
>     compiler can't make this assumption about.

std.zlib should likely be changed to use a byte[] array instead.

>   - Try Tango?  Is the GC different there?

Somewhat, but void[] arrays are still treated as if they have pointers.


Sean



More information about the Digitalmars-d mailing list