[issue28259] Ctypes bug windows
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 0x" 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 <http://bugs.python.org/issue28259> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28259] Ctypes bug windows
Aristotel added the comment: I use 32-bit python on 64-bit windows -- components: -Windows ___ Python tracker <http://bugs.python.org/issue28259> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28259] Ctypes bug windows
Changes by Aristotel : -- components: +Windows -ctypes ___ Python tracker <http://bugs.python.org/issue28259> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28259] Ctypes bug windows
Aristotel added the comment: Oh it's ctypes bug on windows only -- ___ Python tracker <http://bugs.python.org/issue28259> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28259] Ctypes bug windows
Aristotel added the comment: CDLL. I didn't test it on Python 3.5.2, 3.3 - 3.4 only. And btw my OS is windows 7. Lib is also used by some apps (not Python apps) and there this function works well. -- ___ Python tracker <http://bugs.python.org/issue28259> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28259] Ctypes bug windows
Aristotel added the comment: Unfortunately in my case "minimal" example is extremely long. Do you really need it& -- versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue28259> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28259] Ctypes bug windows
Aristotel added the comment: I will write (as short as possible) example. Hope to finish it in ~ 1 week. -- ___ Python tracker <http://bugs.python.org/issue28259> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28259] Ctypes bug windows
Aristotel added the comment: Sorry for delay. I tried to write as small as possible example. Sorry if it is too big Usage: run 2 consoles, cd to dir with sources. In first console type 'python3 main.py test1.tox', and in second type 'python3 main.py test2.tox'. Wait 1-2 min until apps connect and you will see a lot of "access violation reading 0x" when consoles start video call. sometimes apps crashes too. crashes fine on both win 7 an win 8 for me -- Added file: http://bugs.python.org/file45222/toxygen_video_test.zip ___ Python tracker <http://bugs.python.org/issue28259> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28259] Ctypes bug windows
Aristotel added the comment: Any update on this? It blocks development of my project. -- ___ Python tracker <http://bugs.python.org/issue28259> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com