<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div>I'm getting this this Error:</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">The value<br>  (FOREIGN-ALLOC :POINTER :INITIAL-ELEMENT<br>                 (POINT (UNIFORM RNG X-1 X-2)<br>                        (UNIFORM RNG Y-1 Y-2)))<br>is not of type<br>  SB-SYS:SYSTEM-AREA-POINTER.<br>   [Condition of type TYPE-ERROR]<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica
 Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">My array is below, I simplified the array elements to (cffi:null-pointer)  I've been trying everything I can to create a 2d array of pointers. But its all  been coming down to this error: If anyone can help with this I'd be very appreciative.:)<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br>(defvar *2d-array* #2A((<br><br><br>(foreign-alloc :pointer :initial-element (null-pointer))<br><br>(foreign-alloc :pointer :initial-element (null-pointer)))<br><br>((foreign-alloc :pointer :initial-element
 (null-pointer))<br><br>(foreign-alloc :pointer :initial-element (null-pointer)))))</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">(foreign-alloc :pointer<br>               :initial-contents (make-array (reduce #'* (array-dimensions *2d-array*))<br>                                             :displaced-to
 *2d-array*))<br><br></div></div></body></html>