More info: I can reproduce this error with the following loop: for (int x = 0; x < 100; x++) { Py_Initialize(); import_array(); PyRun_SimpleString("from Numeric import *\n"); TRACE("%d\n",x); Py_Finalize(); } Here is the output: 0 1 Fatal Python error: UNREF invalid object -- Cheers, Karl Bellve