Nov-27-2019, 11:55 PM
I have discovered a less efficient workaround.
Output:I replaced the three calls to SetParameter() with this
PyObject * arguments =
Py_BuildValue("(sssi)", ipAddress1,
ipAddress2,
ipAddress3,
timeout);
PyObject * result = PyObject_CallObject(pyfunction, arguments);
// Assuming that pyfunction is already created.
// And 'arguments' and 'result' are properly decremented there reference counts.
I would prefer to not deallocate the tuple each time.