[issue28259] Ctypes bug windows

2021-03-05 Thread Eryk Sun
Eryk Sun added the comment: I didn't have time to look deeper into this. I'm sorry for not getting back to you. The rather-large example that you uploaded didn't and doesn't run for me, so I wasn't able to reproduce the problem. The one bit of advice I have is to always declare required

[issue28259] Ctypes bug windows

2016-10-30 Thread Aristotel
Aristotel added the comment: Any update on this? It blocks development of my project. -- ___ Python tracker ___

[issue28259] Ctypes bug windows

2016-10-25 Thread Aristotel
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

[issue28259] Ctypes bug windows

2016-10-05 Thread Aristotel
Aristotel added the comment: I will write (as short as possible) example. Hope to finish it in ~ 1 week. -- ___ Python tracker ___

[issue28259] Ctypes bug windows

2016-10-05 Thread Steve Dower
Steve Dower added the comment: Ultimately we need something to put in the test suite to make sure it's fixed and doesn't regress in the future. It's asking a lot of our volunteers to investigate a bug on very little information. -- stage: -> test needed

[issue28259] Ctypes bug windows

2016-10-04 Thread Aristotel
Aristotel added the comment: Unfortunately in my case "minimal" example is extremely long. Do you really need it& -- versions: +Python 3.5 ___ Python tracker

[issue28259] Ctypes bug windows

2016-10-03 Thread Eryk Sun
Eryk Sun added the comment: If you want a resolution to this issue, then you need to provide a minimal example that reproduces the problem. It would also be helpful if you could provide a download link for the library that you're wrapping. If not, at least upload a dump file, preferably from

[issue28259] Ctypes bug windows

2016-10-03 Thread Aristotel
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

[issue28259] Ctypes bug windows

2016-10-03 Thread Eryk Sun
Eryk Sun added the comment: Since this is 32-bit, are you using CDLL (cdecl) or WinDLL (stdcall)? Either way, I made a simple test for the given function prototype, and it worked fine in 32-bit 3.5.2 on Windows 10 for both calling conventions. You'll have to provide a minimal example that

[issue28259] Ctypes bug windows

2016-10-01 Thread Aristotel
Aristotel added the comment: Oh it's ctypes bug on windows only -- ___ Python tracker ___ ___

[issue28259] Ctypes bug windows

2016-10-01 Thread Aristotel
Changes by Aristotel : -- components: +Windows -ctypes ___ Python tracker ___ ___

[issue28259] Ctypes bug windows

2016-09-30 Thread Steve Dower
Steve Dower added the comment: You keep removing the Windows component - is this not actually a bug on Windows? -- ___ Python tracker ___

[issue28259] Ctypes bug windows

2016-09-30 Thread Aristotel
Aristotel added the comment: I use 32-bit python on 64-bit windows -- components: -Windows ___ Python tracker ___

[issue28259] Ctypes bug windows

2016-09-30 Thread Steve Dower
Steve Dower added the comment: Are you using 64-bit? There was an issue passing structs a while back, but I don't recall when or if we've merged the patch. -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python

[issue28259] Ctypes bug windows

2016-09-23 Thread Aristotel
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