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

David Abrahams dave at boost-consulting.com
Fri Nov 14 15:41:15 CET 2003


"Yonghua (Michael) Zhang" <mzhang at cpsc.ucalgary.ca> writes:

> 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,

This is not a C++-specific question.  I suggest you ask on the
python-list (comp.lang.python), where you're likely to find someone
who knows the answer.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list