comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

access violation with wrong array.array type

Open cfarrow opened this issue 11 years ago • 1 comments

i call a COM function waiting a uint32 with a wrong 16bits array.array('H'). The result is an access violation: File "C:\Python27\lib\site-packages\comtypes__init__.py", line 604, in call_with_inout v = atyp.from_param(v) File "C:\Python27\lib\site-packages\comtypes\safearray.py", line 199, in from_param value = cls.create(value, extra) File "C:\Python27\lib\site-packages\comtypes\safearray.py", line 138, in create memmove(ptr, addr, nbytes) WindowsError: exception: access violation reading 0x04AFD000 May be a test on types is missing regards

cfarrow avatar Feb 20 '14 02:02 cfarrow