www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - zlib

reply alex <ask nospam.com> writes:
I cannot find a good example on std.zlib, more importantly, the whole 
void[] and then const void[] stuff really throws me, and I get strange 
things like out of memory errors upon execution.
-- 
Alex Herrmann
PC load letter
Sep 25 2011
parent "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Mon, 26 Sep 2011 06:04:20 +0300, alex <ask nospam.com> wrote:

 I get strange things like out of memory errors upon execution.
That's most likely due to std.zlib allocating in its destructor[1]. I'd think such cases should be quite rare - IIRC it should only happen when a Zlib stream is garbage-collected and encountered an error when closing the stream. [1]: http://stackoverflow.com/questions/7323393 -- Best regards, Vladimir mailto:vladimir thecybershadow.net
Sep 25 2011