Hi all,

Does anybody have any ideas on this one?

Take a new vibe.d project. Put this in the app.d and run unittests. It gets through the tests but it seems when things are torn down there is a core.exception.InvalidMemoryOperationError.

class InternalTimer {
    this() {
        _timer = setTimer(1.seconds, () {});
    }
private:
    Timer _timer;
}

unittest {
    auto t = new InternalTimer;
}

I can't get a stack trace from gdb on it either. And this only occurs when it's a class member. If I create a timer as a local variable in the constructor (which isn't helpful to me) the error does not occur.

Any ideas?