On Sat, Jun 13, 2009 at 8:06 PM, Phil Thompson <[email protected]>wrote:
> On Sat, 13 Jun 2009 19:46:07 +0200, Arve Knudsen <[email protected]> > wrote: > > Sorry to bother you again, Phil :) I think I may have stumbled onto > another > > SIP bug, however, as I got a crash in a debug-built Python 2.6, due to a > > negative reference count for my extension module. According to the Python > > documentation, objects returned from Py_InitModule are borrowed, so one > > should increment their reference count. So I patched sip to do just that, > > and the problem went away. > > You don't need to take a reference. However Py_DECREFs in the error > handling code are all wrong (they should only be done for Python v3). Are > any of the error paths being executed in your case?** Oh, I see your point now, and that the DECREFs shouldn't be there :) I am no longer able to reproduce the problem however :/ Anyway, if you remove those DECREFs there should be one less source of errors at least. Arve
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
