New submission from Giampaolo Rodola': >>> import ctypes >>> path = 'C:\\Python35-64\\vcruntime140.dll' >>> cfile = ctypes.CDLL(path) >>> cfile._handle 140736170229760 >>> ctypes.windll.kernel32.FreeLibrary(cfile._handle) Traceback (most recent call last): ctypes.windll.kernel32.FreeLibrary(cfile._handle) ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long to convert
Everything is fine on 32-bit. ---------- components: ctypes messages: 293135 nosy: giampaolo.rodola priority: normal severity: normal status: open title: ctypes FreeLibrary fails on Windows 64-bit versions: Python 3.4, Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30286> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com