I'm having Stack_overflow exception in _ctypes_callproc (callproc.c). The error actually come from the: cleanup: for (i = 0; i < argcount; ++i) Py_XDECREF(args[i].keep); when args[i].keep->ob_refCnt == 1 Aung.