PTVS
PTVS copied to clipboard
/MTd /fsanitize=address /LD: OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed
This issue has been moved from a ticket on Developer Community.
[severity:I'm unable to use this version] I use Visual Studio Build Tools 2019
- x64 developer command prompt
cl /MTd /fsanitize=address /LD main.c where main.c is empty file (or not, this is minimal case) main.dll is created
- however when in python
import ctypes ctypes. CDLL("main.dll")
i get:
Traceback (most recent call last): File "
", line 1, in File "C:\python3\lib\ctypes_init_.py", line 374, in init self._handle = _dlopen(self._name, mode) OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed
This normally works with Visual Studio Professional 2022 17.9.2 (same workflow, same flags, etc)
When i omit /MTd, it works as expected but thats what i do not need
Forgot to mention build tools version: happened in both 16.11.39 and 16.11.34 for me
Original Solutions
(no solutions)