> 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.