Invalid memory operation during allocation with `new`
Adam D. Ruppe
destructionator at gmail.com
Sun Jan 12 13:58:25 UTC 2020
On Sunday, 12 January 2020 at 13:39:42 UTC, Per Nordlöw wrote:
> core.exception.InvalidMemoryOperationError at src/core/exception.d(647): Invalid memory operation
That means a destructor tried to perform a GC operation while the
GC was running.
> The crash happens only if the `unittests` are run prior to
> `main`.
Check all the classes created by those unittests. If any of them
have destructors that allocate memory in any way - including
calling like `writeln(this)` cuz that can call toString, change
that.
More information about the Digitalmars-d-learn
mailing list