X-Received: by 10.129.145.71 with SMTP id i68mr11217037ywg.10.1433668509915; Sun, 07 Jun 2015 02:15:09 -0700 (PDT) X-Received: by 10.140.104.48 with SMTP id z45mr134095qge.22.1433668509837; Sun, 07 Jun 2015 02:15:09 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!z60no722630qgd.1!news-out.google.com!4ni237qgh.1!nntp.google.com!z60no722626qgd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sun, 7 Jun 2015 02:15:09 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=93.170.185.152; posting-account=xNHlUwoAAAC6c1_aTAutbFpEsU2EV--7 NNTP-Posting-Host: 93.170.185.152 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3726dccc-76cb-45a2-b0a8-e41ef300be96@googlegroups.com> Subject: Re: Embedded Python and C Callback functions From: doc.mefisto@gmail.com Injection-Date: Sun, 07 Jun 2015 09:15:09 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.lang.python:92216 I'm trying to debug and find my error. It goes wrong when: PyObject *v; v = va_arg(*p_va, PyObject *); if (v != NULL) { if (*(*p_format - 1) != 'N') Py_INCREF(v); } it tries to PyINCREF to my passed callback.