enthought / enthought/comtypes
access violation with wrong array.array type
Open
bug
- Dominant language
- Python
- Stars
- 345
- Forks
- 105
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Assessment
This issue has not been assessed yet.