Message269992
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). |
|
Date |
User |
Action |
Args |
2016-07-08 15:52:10 | Keno Fischer | set | recipients:
+ Keno Fischer, amaury.forgeotdarc, mark.dickinson, belopolsky, ezio.melotti, asvetlov, cgohlke, meador.inge, palm.kevin, dancol, Igor.Skochinsky, Artfunkel |
2016-07-08 15:52:10 | Keno Fischer | set | messageid: <1467993130.12.0.832791214868.issue17213@psf.upfronthosting.co.za> |
2016-07-08 15:52:10 | Keno Fischer | link | issue17213 messages |
2016-07-08 15:52:10 | Keno Fischer | create | |
|