Closed roozbehid-ic closed 1 week ago
This is by design. See https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1710
- Fixed
mutex
's constructor to beconstexpr
. #3824 #4000 #4339
- Note: Programs that aren't following the documented restrictions on binary compatibility may encounter null dereferences in
mutex
machinery. You must follow this rule:When you mix binaries built by different supported versions of the toolset, the Redistributable version must be at least as new as the latest toolset used by any app component.
- You can define
_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
as an escape hatch.
Thanks for the info. Closing the issue
Describe the bug
VS 17.10 C++ runtime broke following code. Code is compiled with VS 17.10 but it doesnt work anymore with previously deployed VC runtime.
Command-line test case
Expected behavior
Lock does not crash. Crashing computer had following version of VCRuntime msvcp140.dll 14.32.31326.0 vcruntime140.dll 14.32.31326.0
working computer has msvcp140.dll 14.40.33810.0 vcruntime140.dll 14.40.33810.0