InvalidMemoryOperationError when calling functions from destructors

David d at dav1d.de
Thu Apr 25 13:05:26 PDT 2013


> Regardless, the above (accessing objects in destructors) is not related
> to the InvalidMemoryOperationError. See the documentation for it:
> http://dlang.org/phobos/core_exception.html#.InvalidMemoryOperationError

I had/have the same problem, it also occurs if you allocate in a
destructor during RT shutdown. Well other than that I couldn't reproduce
it with allocating in destructors or accessing objects owened by the gc
in the destructors.



More information about the Digitalmars-d mailing list