Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
Description
It appears that if you link against mongoclient.dll in your project and then execute code that uses a static variable that's declared in the header but has storage reserved in the C++ driver, it may crash. The compiler seems to be allocating storage space for the static variable in the local application even though it should only be using the storage in the DLL.
Attachments
Issue Links
- depends on
-
SERVER-3364 The C++ Driver compiled as shared library must export the API
-
- Closed
-
- related to
-
CXX-81 On Windows, MONGO_API functions should be decorated with __cdecl.
-
- Closed
-