chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] heap size or macro problem


From: felix winkelmann
Subject: Re: [Chicken-users] heap size or macro problem
Date: Mon, 5 Nov 2007 13:38:45 +0100

On 11/5/07, Rick Taube <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]