On Sat, 01 Mar 2014 22:55:43 GMT, Øivind Loe wrote:

Thanks. That fixes it. There is still something strange though.. because my MongoDB connection dies unexpectedly at some point
./dboss-test(immutable(vibe.db.mongo.connection._MongoErrorDescription) vibe.db.mongo.connection.MongoConnection.getLastError(immutable(char)[])+0x6cf) [0x12ff097]

I think you'd have more success looking at the MongoDB log file. I've only managed to get MongoDB 2.4 working, I think the connection gets closed because of an invalid command, I see this:

Bson[string] command_and_options = [ "getLastError": Bson(1.0) ];

and it looks like it should be

Bson[string] command_and_options = [ "getLastError": Bson(1) ];

according to the spec at http://docs.mongodb.org/manual/reference/command/getLastError/

There could be a few adjustments to do before 2.6 gets covered. I'm not sure what version you're using