Dave Lawrence added the comment:
traced to be a duplicate of https://bugs.python.org/issue28267
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Dave Lawrence added the comment:
by redefinining the Py_DECREF macro in my application:
#define Py_DECREF(op) do { if (--op->ob_refcnt == 0) fprintf(stderr, "DECREF
%s %d %p %d %s %p\n", __FILE__, __LINE__, op, Py_SIZE(op),
Py_TYPE(op)->tp_name,Py_TYPE(op)->tp_deallo
Dave Lawrence added the comment:
further investigation seems to point to this being something to do with mingw
and the dll. I have tried compiling the same test example on 64-bit linux and
in the Ubuntu WSL on windows and it works. Tests also show that the refcount of
'1' is corre
New submission from Dave Lawrence :
I am calling a python method from C using the attached code.
The Site.py file is:
import os
def find_site():
path = os.path.abspath(".")
return path
Cross compiled to Windows from Linux using mxe.cc and python 2.7.17
On 32-bit th