Runtime error R6034 in embedded Python application

前端 未结 13 1198
暗喜
暗喜 2020-12-04 10:06

I am working on an application which uses Boost.Python to embed the Python interpreter. This is used to run user-generated \"scripts\" which interact with the main program.<

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 10:41

    I also had the same problem with embedding Python27.dll from a C-program using the Universal-CRT.

    A \msvcr90.dll was the offender. And is off-course in my PATH. AFAICS the only users of msvcr90.dll are the PyWin32 modules \lib\site-packages\win32\win32*.pyd.

    The fix was just move \msvcr90.dll to that directory.

    PS. PyWin32 still has this as an issue 7 years later!

提交回复
热议问题