[C++-sig] fatal error when the C++ program return a list to python pro.

Yonghua (Michael) Zhang mzhang at cpsc.ucalgary.ca
Fri Nov 14 04:21:14 CET 2003


Hi,

I got the following fatal error when the C++ program return a list 
python program.
First my python program calls C function and I make the c function 
return as following:

  
   return Py_BuildValue ("(iiii)",
             (int)self->xpred[0],
             (int)(self->xpred[1]-self->refRec[2]),
             (int)self->refRec[3],
             (int)self->refRec[2]);

The error message is:

Fatal Python error: GC object already in linked list
Abort

Any idea?  thank you,

michael





More information about the Cplusplus-sig mailing list