Memory leak with dynamic array
Joseph Wakeling
joseph.wakeling at webdrake.net
Tue Apr 13 05:24:57 PDT 2010
Steven Schveighoffer wrote:
> This should work as you expect. Can you produce a full code example?
> Are you reserving space in x before-hand?
Weird; now it works. I wonder if because I upgraded to 2.043 ... ? I
understand there was a fix in there for array append.
On the other hand, if the assumeSafeAppend takes place outside the loops
entirely, blow-up occurs -- because the command is not issued after the
array resize to zero? I've attached examples.
Thanks & best wishes,
-- Joe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arrayleak.d
Type: text/x-dsrc
Size: 286 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20100413/5bd25aca/attachment.d>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arrayNoLeak.d
Type: text/x-dsrc
Size: 287 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20100413/5bd25aca/attachment-0001.d>
More information about the Digitalmars-d-learn
mailing list