[PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

Diez B. Roggisch deets at web.de
Wed Jul 22 21:26:14 BST 2009


> 
> I missed your call to sipFindClass().
> 
> It's almost certainly a bug in your handwritten code somewhere - not
> necessarily in the code above.


ok, I'm feeling stupid now. But after building sip with debug enabled, 
and stepping into the conversion-call, I found that the problem was that 
the error-variable I passed was *uninitialized*. There are reasons why I 
don't like c++ anymore...

You mention this behavior in the docs - but maybe an additional warning 
for idiots like me would be in order :)

Diez


More information about the PyQt mailing list