[CXX-1388] Corrupted output | bsoncxx::to_json Created: 07/Jul/17 Updated: 27/Oct/23 Resolved: 12/Jan/18 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | BSON |
| Affects Version/s: | 3.1.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Guillaume [X] | Assignee: | Andrew Morrow (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | driver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 10 Pro (language: French-FR) |
||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Description |
|
New to MongoDB, I have followed the official instructions (https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/) to install MongoDB C driver then the last version of MongoDB C++ driver on Windows 10 Pro with MVS 15 2017 Win64. My first project (the offical example code) compiles. However, the output is corrupted. I have explained my issue here: https://groups.google.com/forum/#!topic/mongodb-user/KxN5llw86Vc The code:
The same issue appears with this code:
A Stackoverflow user has a similar issue: https://stackoverflow.com/questions/40309483/bsoncxxto-json-return-corrupted-string/40310414 I have tried different MVS configurations with no success. |
| Comments |
| Comment by Guillaume [X] [ 12/Jan/18 ] |
|
Hi. Thank you for your feedback. I solved my issue with a strictly static library build. |
| Comment by Andrew Morrow (Inactive) [ 12/Jan/18 ] |
|
I have run both of your examples locally without issue. I can point out two things to consider:
However, neither of these seems to be causative of the sort of problems you are seeing. I recommend that you do the following:
|