Irit Katriel added the comment:
Python 2.7 is no longer maintained. If you are seeing this problem on a new
version (>= 3.9), please create a new issue with full instructions how to
reproduce it.
--
nosy: +iritkatriel
resolution: -> out of date
stage: -> resolved
status: open ->
zhaoya added the comment:
FUNCTION_CALL_MODE is __stdcall i think no problem.because, if
GetContext(PyObject *capsule) -->GetContext() is ok. PyObject *capsule from
python to c unknown error occurred.
--
___
Python tracker
Steve Dower added the comment:
What is the definition of FUNCTION_CALL_MODE? And if it is anything other than
"stdcall", change "ctypes.windll" to "ctypes.cdll" and try again.
You should also consider posting this to python-list, as it is almost certainly
a problem in
New submission from zhaoya :
i have question:call,c-->python-->c.
1.the c pointer void* abc="123" by pycapsule in the c code.
..
void* lpContext = "abc";
PyObject * lpPyContext = PyCapsule_New(lpContext, "Context",NULL);
..
PyTuple_SetItem(pArgs, 1, lpPyContext);