M
Mick
Hi there,
I posted this in mongodb-user, but I think it's more of a C++ question, so sorry for the double-post...
I'm using Visual Studio 2008 C++, connecting to Mongo 2.0.6 database.
If I try to get a ScopedDbConnection, but mongod is not running for some reason, it throws
"First-chance exception at 0x750bb9bc in myApp.exe: Microsoft C++ exception: mongo::SocketException at memory location 0x0057ead8"
Is there any way to check if either of those 2 are running (mongod or MongoDB) before trying to get a ScopedDbConnection?
Thank you in advance.
I posted this in mongodb-user, but I think it's more of a C++ question, so sorry for the double-post...
I'm using Visual Studio 2008 C++, connecting to Mongo 2.0.6 database.
If I try to get a ScopedDbConnection, but mongod is not running for some reason, it throws
"First-chance exception at 0x750bb9bc in myApp.exe: Microsoft C++ exception: mongo::SocketException at memory location 0x0057ead8"
Is there any way to check if either of those 2 are running (mongod or MongoDB) before trying to get a ScopedDbConnection?
Thank you in advance.