Keno Fischer added the comment:

pyzmq has a similar issue. I believe one solution would be to call
`_Py_ActivateActCtx` in ctypes' load_library, i.e. do
```
#if HAVE_SXS
        ULONG_PTR cookie = _Py_ActivateActCtx();
#endif
        hMod = LoadLibraryW(name);
#if HAVE_SXS
        _Py_DeactivateActCtx(cookie);
#endif
```
in that function. I don't know enough about python or ctypes to say whether 
this patch works as is (_Py_ActivateActCtx seems to be an internal function, 
not sure if ctypes has access to that).

----------
nosy: +Keno Fischer

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17213>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to