<div dir="ltr">Thanks for the suggestion to use the Force version. Much cleaner. <div><br></div><div>Inside of %SetCode, it does not appear that the sipErr variable is available. I tried simply replacing the argument with `int err;` and then `*err` in the signature. Still segfaulting. </div><div><br></div><div>Any other suggestions of what to check? My next test will be to move this code into get and set methods to have access to sipErr, but perhaps something else could be causing this?</div><div><br></div><div>(The previous code is unchanged except the final arg 0 is replaced with *err.)</div><div><br></div><div>Thanks for the assistance, </div><div>J</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 26, 2016 at 2:53 PM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 26 Oct 2016, at 6:39 pm, Jay L. <<a href="mailto:jlaura@asu.edu">jlaura@asu.edu</a>> wrote:<br>
><br>
> Phil,<br>
><br>
> Thanks for the pointers. Here is the resultant code.<br>
><br>
> 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.<br>
><br>
> 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?<br>
><br>
><br>
> The small debug block (commented out) is working as a replacement for the sipConvertToType call.<br>
<br>
</span>The last argument to sipConvertToType() cannot be 0.<br>
<br>
Also using sipForceConvertToType() is less code.<br>
<span class="HOEnZb"><font color="#888888"><br>
Phil</font></span></blockquote></div><br></div>