InvalidMemoryOperationError@(0)

2014-11-17 Thread Andre via Digitalmars-d-learn
Hi, the following coding is an extract from the DGUI library. On my system (Win 8) I receive InvalidMemoryOperationError@. I got the information that this Error doesn't not occur on a WinXP system. I think there is definetely a bug in the following coding. The Grid class has a Collection of

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread ketmar via Digitalmars-d-learn
On Mon, 17 Nov 2014 15:41:25 + Andre via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: ~this() { foreach(cp; this._columns) { } } don't do that in destructors. `_columns` field can be already collected by

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread André
Thanks a lot. I will forward this recommendation (DGUI BitBucket). Kind regards André On Monday, 17 November 2014 at 16:40:18 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 17 Nov 2014 15:41:25 + Andre via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: ~this()

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 17 November 2014 at 16:40:18 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 17 Nov 2014 15:41:25 + Andre via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: ~this() { foreach(cp; this._columns) {

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 17 November 2014 at 22:19:04 UTC, Vladimir Panteleev wrote: On Monday, 17 November 2014 at 16:40:18 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 17 Nov 2014 15:41:25 + Andre via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: ~this() {

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/17/14 5:19 PM, Vladimir Panteleev wrote: On Monday, 17 November 2014 at 16:40:18 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 17 Nov 2014 15:41:25 + Andre via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: ~this() { foreach(cp; this._columns)

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 17 November 2014 at 22:40:36 UTC, Steven Schveighoffer wrote: On 11/17/14 5:19 PM, Vladimir Panteleev wrote: On Monday, 17 November 2014 at 16:40:18 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 17 Nov 2014 15:41:25 + Andre via Digitalmars-d-learn

Re: InvalidMemoryOperationError@(0)

2014-11-17 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/17/14 6:38 PM, Vladimir Panteleev wrote: On Monday, 17 November 2014 at 22:40:36 UTC, Steven Schveighoffer wrote: On 11/17/14 5:19 PM, Vladimir Panteleev wrote: On Monday, 17 November 2014 at 16:40:18 UTC, ketmar via Digitalmars-d-learn wrote: On Mon, 17 Nov 2014 15:41:25 + Andre