InvalidMemoryOperationError@(0)

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 17 08:39:52 PST 2014


On Mon, 17 Nov 2014 15:41:25 +0000
Andre via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:

> 	~this()
> 	{
> 		foreach(cp; this._columns)
> 		{	
> 		}
> 	}
don't do that in destructors. `_columns` field can be already collected
by GC.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141117/2dbed318/attachment.sig>


More information about the Digitalmars-d-learn mailing list