mongodb c++driver连接数据错误
2016-07-06 18:05
465 查看
错误描述:
T* boost::scoped_ptr<T>::operator->() const [with T = mongo::AtomicWord<unsigned int>]: Assertion `px != 0' failed.
解决方法:
在connect之前加上mongo::client::initialize();这个调用。
T* boost::scoped_ptr<T>::operator->() const [with T = mongo::AtomicWord<unsigned int>]: Assertion `px != 0' failed.
解决方法:
在connect之前加上mongo::client::initialize();这个调用。
相关文章推荐
- Linux socket 初步
- 分享微信开发Html5轻游戏中的几个坑
- 使用C++实现JNI接口需要注意的事项
- Linux Kernel 4.0 RC5 发布!
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- 如何在 Fedora 上安装 MongoDB 服务器
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- PHP添加yaf xhprof mongodb 同理
- mongodb安装