<div dir="ltr">Couple of things:<br>* Is there any reason you are not using the open-cv library that exists for common lisp? <a href="https://github.com/ryepup/cl-opencv">https://github.com/ryepup/cl-opencv</a>. It is 3 years old but reading the code may help you work out some of the answers.<br>

* What is the error message in *inferior-lisp*? Normally unless you have manged to corrupt the lisp image somewhere (which you can do with cffi, I certainly have plenty of times) an error in the foreign function shouldnt crash lisp.<br>

Looking forward to the error message!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 15 October 2013 23:16, Joeish W <span dir="ltr"><<a href="mailto:joeish80829@yahoo.com" target="_blank">joeish80829@yahoo.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div>

I wrapped  opencv's cvError like this</div><div><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br>

</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br>;;  void cvError(int status, const char* func_name, const char* err_msg, const char* file_name, int line)<br>

(cffi:defcfun ("cvError" cv-error) :void<br>  (status :int)<br>  (func-name :string)<br>  (err-msg :string)<br>  (file-name :string)<br>  (line :int))<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">but the whole purpose of the function is to cause an error in c which it does perfectly when i run this at the repl<br>

</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

(cv-error +stsoutofrange+ "SCALAR" "error" "/home/w/Documents/opencv-2.4.6.1/modules/calib3d/src/epnp.cpp" 1)</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">here is the error</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">OpenCV Error: One of arguments' values is out of range (bew!) in SCALAR, file /home/w/Documents/opencv-2.4.6.1/modules/calib3d/src/epnp.cpp, line 1<br>

terminate called after throwing an
 instance of 'cv::Exception'</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">but the thing is it causes the error in c on the inferior-lisp buffer in emacs  on the repl buffer the repl just hangs....how would i go about getting this error(above) to show up on the lisp side<br>

</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

<br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

<br></div></div></div></blockquote></div><br></div>