Re: [Python-Dev] negative ref count on windows debug version

2012-01-20 Thread Amaury Forgeot d'Arc
Hi, 2012/1/20 Dr.-Ing. Ingo D. Rullhusen > using > > loc = PyDict_New(); > Py_XDECREF(loc); > > or > > PyObject *src = Py_CompileString( code.toStdString().c_str(), > "", Py_single_input ); > Py_XDECREF(src); > > results in a "object at blahblah has negative ref count -1" error on > windows visu

[Python-Dev] negative ref count on windows debug version

2012-01-20 Thread Dr.-Ing. Ingo D. Rullhusen
Hello, using loc = PyDict_New(); Py_XDECREF(loc); or PyObject *src = Py_CompileString( code.toStdString().c_str(), "", Py_single_input ); Py_XDECREF(src); results in a "object at blahblah has negative ref count -1" error on windows visual studio in debug mode. And yes, python is compiled and l