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() {}...

Reply via email to