[CDRIVER-3558] Installation docs for Windows should include explicit configuration Created: 28/Feb/20 Updated: 28/Oct/23 Resolved: 11/Mar/20 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | docs |
| Affects Version/s: | None |
| Fix Version/s: | 1.17.0-beta, 1.17.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | shijie Jiang | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
visual studio 2017 win10 x64 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Critical error detected c0000374 ......\mongo-c-driver-1.15.2\src\libmongoc\src\mongoc\mongoc-cursor.c:1110 _mongoc_cursor_collection(): precondition failed: *collection_len > 0 |
| Comments |
| Comment by Githook User [ 11/Mar/20 ] | |
|
Author: {'username': 'kevinAlbs', 'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com'}Message: | |
| Comment by Kevin Albertson [ 07/Mar/20 ] | |
|
Glad to help! I've modified this ticket to update our documentation. | |
| Comment by shijie Jiang [ 07/Mar/20 ] | |
|
Thank you very much! It works just as you said. | |
| Comment by Kevin Albertson [ 05/Mar/20 ] | |
|
Hi jsjfbj@163.com, thanks for the additional info. The output of dumpbin.exe of libmongoc-1.0.dll does indicate it's linking against the debug runtime (VCRUNTIME140D.dll). I was able to reproduce that locally with VS 2019, but specifying an explicit configuration for the installation command worked: Try installing with:
I believe that is an omission in our documentation, as our installation instructions do no include the flag in the installation command: http://mongoc.org/libmongoc/current/installing.html#building-on-windows-with-visual-studio Let me know if that works, and I'll update the documentation accordingly. | |
| Comment by shijie Jiang [ 05/Mar/20 ] | |
|
// MongoDB C driver // MongoDB cxx driver The debug release driver compiled successfully. The debug version works fine,but the release version doesn't // test code int main() std::cout << "Hello World!\n";
| |
| Comment by Kevin Albertson [ 02/Mar/20 ] | |
|
Hi jsjfbj@163.com, thank you for the report! To diagnose and reproduce the issue, we may need more information.
|