How can I unload a DLL using ctypes in Python?

前端 未结 5 1458
一整个雨季
一整个雨季 2020-11-29 07:50

I\'m using ctypes to load a DLL in Python. This works great.

Now we\'d like to be able to reload that DLL at runtime.

The straightforward approach would s

5条回答
  •  北海茫月
    2020-11-29 08:10

    If you need this functionality, you could write 2 dlls where dll_A loads/Unloads library from dll_B. Use dll_A as as python interface-loader and passthrough for functions in dll_B.

提交回复
热议问题