[PyQt] Pointer Attribute
Phil Thompson
phil at riverbankcomputing.com
Wed Oct 26 22:53:08 BST 2016
On 26 Oct 2016, at 6:39 pm, Jay L. <jlaura at asu.edu> wrote:
>
> Phil,
>
> Thanks for the pointers. Here is the resultant code.
>
> I have added the check for length and am now allocating the h_data array on the heap. I have not added error check for any previous array, but the point is appreciated.
>
> In the below code, I am segfaulting on the sipConvertToType call and am not sure why. The sipTypePoint definition is the lowest code block. I do not have any TypeCode defined for the SiftPoint, but all of the types are standard so I think custom code is not needed there?
>
>
> The small debug block (commented out) is working as a replacement for the sipConvertToType call.
The last argument to sipConvertToType() cannot be 0.
Also using sipForceConvertToType() is less code.
Phil
More information about the PyQt
mailing list