I never has seen this kind of error. Maybe thery is a misundertanding about the usage.
If you copy the following lines in a file with the extension ".ses" and run it with "file-session-play, you get 100 nodes around the center of a tetmeshed cube:
The undocumented function has a documented version:
sgm_get_close_points() you can find it in the docs; the tricky thing with this function is you need to call it twice (first time to find out how many points there are) Then you redim your array to receive the result.
sys_free_array(close_pts)
sys_free_array(pt_dist)
sys_allocate_array(close_pts,1,1) /* needed to stop error messages from PCL function */