core.exception.InvalidMemoryOperationError@(0) on File Reading.

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 22 13:39:05 PDT 2015


Where is your code found? InvalidMemoryOperationError usually 
props up in code running from a destructor.

If the call to .array isn't in a destructor, it might also be 
that the array is triggering a GC cycle... which calls something 
in a destructor.

Since that's so commonly the cause I encourage you to audit your 
classes and make sure none of them try to new any memory in their 
~this() {}...


More information about the Digitalmars-d-learn mailing list