On 11/5/07, Rick Taube <[EMAIL PROTECTED]> wrote:
>
> so clearly we are not doing this right because nothing is declared as
> safe however I dont see in the docs how to declare the run_process as
> safe, can you help me out? or should we just use the first version
> and wrap each clouser with error proctection boilerplate?
>

I'm not sure yet that you do anything wrong. So this is an application
that embeds compiled Scheme code into a C/C++ app, right?
Do you run CHICKEN_run() once and does the Scheme code do a
"(return-to host)"? In this situation, you don't need the "safe" versions
of "foreign-lambda[*]" (I was refering to those, when I mentioned
"safe", i.e. "foreign-safe-lambda[*]"). You need them when you have
Scheme code (embedded or not) that calls C that calls Scheme again.
So if you use "foreign-lambda"'s in your code that call back into
Scheme, then replace them with "foreign-safe-lambda".

Anyway, it's not trivial to get all this right, and the error messages
are often misleading.


cheers,
felix


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to