Hello,
I’ve recently upgraded my visual studiot to its the lastest version (6 month I’ve not did it).
Surprise : my DLL built with this version crashes (x64 release, windows) in Open method whereas it did not crash with an oldervistual studio 22 17.x version.
msvcp140.dll:
_Mutex_base::lock() [
if (_Mtx_lock(_Mymtx()) != _Thrd_result::_Success) {
→ “Exception thrown at 0x00007FFE0B242F58 (msvcp140.dll) in TestInterfaceAcqGen.exe: 0xC0000005: Access violation reading location 0x0000000000000000.”
I asked the question to Microsoft dev community: msvcp140.dll crash mutex with code built with latest visual studio - Developer Community
There is a workaround if I define “_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR”. It seems microsoft changed constexpression things on mutex. This means the same code that worked fine will I you compile it on the latest visual studio upgrade.
I am not using the latest CVB on the machine I tested it, the wrappers have probably changed a bit.
Did you have noticed this (big) mutex problem with lastest visual studio?
I yes how did you solve it?
Thanks in advance,
Mikael.