I'm trying to create a program in Qt C++ that uses mongodb, on a Mac. But every time i try to connect to the database, I get "MessagingPort say send() errno:9 Bad file descriptor 127.0.0.1:40440". Anyone who knows why, and what to do?