I'm getting this this Error:
The value (FOREIGN-ALLOC :POINTER :INITIAL-ELEMENT (POINT (UNIFORM RNG X-1 X-2) (UNIFORM RNG Y-1 Y-2))) is not of type SB-SYS:SYSTEM-AREA-POINTER. [Condition of type TYPE-ERROR]
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.:)
(defvar *2d-array* #2A((
(foreign-alloc :pointer :initial-element (null-pointer))
(foreign-alloc :pointer :initial-element (null-pointer)))
((foreign-alloc :pointer :initial-element (null-pointer))
(foreign-alloc :pointer :initial-element (null-pointer)))))
(foreign-alloc :pointer :initial-contents (make-array (reduce #'* (array-dimensions *2d-array*)) :displaced-to *2d-array*))