[New-bugs-announce] [issue28259] Ctypes bug windows

Aristotel report at bugs.python.org
Fri Sep 23 12:25:46 EDT 2016


New submission from Aristotel:

I'm wrapping C function using ctypes. Function has following prototype:
bool func(some_struct* pointer, uint32_t a, uint16_t b, uint16_t c, const uint8_t *d, const uint8_t *e, const uint8_t *f, some_enum *e);
I tried a lot of variants of wrapper but on windows I always have "access violation reading 0x00000000" in console. On Linux everything works fine. I tested it with different versions of Python, it presents at least in 3.3 - 3.5. I think bug is in passing uint8_t *d, uint8_t *e, uint8_t *f, because wrapper for almost the same function with 1 pointer instead of 3 works as expected.

----------
components: ctypes
messages: 277286
nosy: PlatonAdCo
priority: normal
severity: normal
status: open
title: Ctypes bug windows
type: crash
versions: Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28259>
_______________________________________


More information about the New-bugs-announce mailing list