[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-31 Thread Owen
Owen added the comment: Thanks, this issue has been fixed. :-) fixing revisions: r88284 (3.2), r88285 (3.1) and r88286 (2.7) -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-26 Thread stan mihai
stan mihai added the comment: Disabling optimizations doesn't really fix the issue, just hides it, for now. The problem was an uninitialized variable. Attached is the patch that fixes it. -- keywords: +patch nosy: +stan.mihai Added file: http://bugs.python.org/file20528/ctypes_win64.di

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-21 Thread Owen
Owen added the comment: wow~~~ It works on my PC too (Windows 2003 STD x64). Thanks. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-21 Thread Christoph Gohlke
Christoph Gohlke added the comment: The patch attached to #8275 fixes this issue and possibly also #9266. Tested with Python 2.7.1 64 bit on Windows 7. -- ___ Python tracker ___

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-21 Thread Owen
Owen added the comment: yes, I tried lots of types. The issue still happens. The same case in Ubuntu and Mac were works well. -- ___ Python tracker ___ _

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-21 Thread Christoph Gohlke
Christoph Gohlke added the comment: The provided example has two problems: The DLL should be loaded as cdll, not windll. C_METHOD_TYPE4 uses c_int32 as parameter type while pyFunc4Type in testPy2.cpp uses LPVOID (64 bit on win-amd64). Even with those corrections the issue remains. --

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-20 Thread Owen
Owen added the comment: I tested this issue in Python2.7.1, Python3.1.3 and Python 3.2rc1. It's still can reproduce. Would you please check this "Callback functions" issue? -- ___ Python tracker __

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-10-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I don't have x64 machine, so I cannot test this. So this is just an idea. It seems Modules/_ctypes/libffi_msvc is a bit old. Modules/_ctypes/libffi/src/x86 is newer. Maybe this issue can be fixed by using newer one? Thank you. -- _

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-10-03 Thread Greg Hazel
Changes by Greg Hazel : -- nosy: +ghazel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Probably this issue is duplicate of #9266. -- nosy: +ocean-city ___ Python tracker ___ ___ Python

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-19 Thread Owen
Owen added the comment: Note: This issue also occurs on other 64 bit windows OS(i.e. windows xp 64bit) Load "testPy2.dll" needs vc++ runtime library (http://download.microsoft.com/download/2/d/6/2d61c766-107b-409d-8fba-c39e61ca08e8/vcredist_x64.exe) Update "testPy2.dll", use this to reproduce

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-18 Thread Owen
Owen added the comment: Please reproduce this issue by 64bit Python. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +theller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-17 Thread Owen
Changes by Owen : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-09-17 Thread Owen
New submission from Owen : OS: Windows 2003STD x64 en I have try to call python method from c++ dll by "WINFUNCTYPE". But the 4th parameter is always None or 0 if the type is int or void* (float is works fine). Following is the part of source code: ==code===