core.exception.InvalidMemoryOperationError@(0)

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 24 14:46:55 PST 2015


On Saturday, 24 January 2015 at 22:42:51 UTC, Ali Çehreli wrote:
> The allocations may be indirect. For example, formatting a 
> string to log a message may allocate. Try marking your 
> destructors as @nogc to see whether the compiler agrees.
>
> I am not sure whether it would cause the same error but another 
> reason for the error is touching reference members of a class, 
> which may have been finalized before the object.
>
> Ali

Strange, I have no explicit destructors declared in my code 
(classes/structs).

I'm making rich usage of std.container.Array, thought...


More information about the Digitalmars-d-learn mailing list