[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows x86

2020-06-19 Thread Aravindhan
Change by Aravindhan : -- title: ctypes callback with structure crashes in Python 3.8 on Windows -> ctypes callback with structure crashes in Python 3.8 on Windows x86 ___ Python tracker <https://bugs.python.org/issu

[issue41021] ctypes callback with structure crashes in Python 3.8 on Windows

2020-06-19 Thread Aravindhan
Aravindhan added the comment: Hi, Thanks for response @eryksun Sorry that I did not mention it is compiled for x86 and the crash happens in 32bit python. Yes, the dll is declared with stdcall and built for x86 with MSVC. It is tested with python 3.7.4 32bit which is successful and fails on

[issue41021] Ctype callback with Structures crashes on python 3.8 on windows.

2020-06-18 Thread Aravindhan
New submission from Aravindhan : Python Process crashes with unauthorised memory access when the C++ DLL callback has arguments as structures. Happens in python 3.8. python 3.7 works fine with same source code. Initial investigations revels that the structure is called back as a pointer