[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core dumped while scheme_apply



On Thu, Feb 14, 2002 at 09:32:34AM -0700, Matthew Flatt wrote:

> Use scheme_setjmp:
> 
>  ...
>   if (scheme_setjmp(scheme_error_buf)) {
>     /* There was an error */
>     ...
>   } else {
>     v = scheme_eval_string(s, env);
>   }

Well, I've read this in docs. But the question is: should I call setjmp before 
or after evaluation? If after, that's what I did. And it breaks.

My code looks like this:

scheme_apply(sfFunction,3,args);
if (scheme_setjmp(scheme_error_buf)) {
  return -1;
}

-- 
Yours truely, WBR, Paul Argentoff.