[cffi-devel] CLISP (pointer-address nil) error
Luís Oliveira
luismbo at gmail.com
Sun Jun 14 18:23:27 UTC 2009
On Fri, Jun 12, 2009 at 8:43 AM, Tobias
Rautenkranz<tobias at rautenkranz.ch> wrote:
> Actually I am getting the NIL pointers from cffi:mem-ref:
>
> CL-USER> (defvar *a* (cffi:foreign-alloc :pointer
> :initial-element (cffi-sys:null-pointer)))
> *A*
> CL-USER> (cffi:mem-ref *a* :pointer)
> NIL
>
> Attached is your patch with the handling for mem-ref added.
>
>
> Getting rid of NIL as null pointer will require additional changes:
Thanks. I've pushed a patch based on yours and took care of the
additional cases you've identified. Hope that fixes your problems.
--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
More information about the cffi-devel
mailing list