wkcn commented on pull request #19236: URL: https://github.com/apache/incubator-mxnet/pull/19236#issuecomment-700357696
https://docs.python.org/3/library/ctypes.html The document shows that > The winmode parameter is used on Windows to specify how the library is loaded (since mode is ignored). It takes any value that is valid for the Win32 API LoadLibraryEx flags parameter. When omitted, the default is to use the flags that result in the most secure DLL load to avoiding issues such as DLL hijacking. Passing the full path to the DLL is the safest way to ensure the correct library and dependencies are loaded. Could we pass the full path of DLL by ` lib = ctypes.CDLL(os.path.abspath(lib_path[0]))` ? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
