Author Keno Fischer
Recipients Artfunkel, Igor.Skochinsky, Keno Fischer, amaury.forgeotdarc, asvetlov, belopolsky, cgohlke, dancol, ezio.melotti, mark.dickinson, meador.inge, palm.kevin
Date 2016-07-08.15:52:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467993130.12.0.832791214868.issue17213@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2016-07-08 15:52:10Keno Fischersetrecipients: + Keno Fischer, amaury.forgeotdarc, mark.dickinson, belopolsky, ezio.melotti, asvetlov, cgohlke, meador.inge, palm.kevin, dancol, Igor.Skochinsky, Artfunkel
2016-07-08 15:52:10Keno Fischersetmessageid: <1467993130.12.0.832791214868.issue17213@psf.upfronthosting.co.za>
2016-07-08 15:52:10Keno Fischerlinkissue17213 messages
2016-07-08 15:52:10Keno Fischercreate