This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [LONG] Re: Calling Scheme from C and Garbage Collection


On Tue, Dec 01, 1998, Russ McManus wrote:
> 
> Maybe you are keeping a pointer to a SCM value that is not protected
> from gc?  After you allocate a compiled regexp, how do you make sure
> that it never gets gc'ed?  Maybe all you need is a scm_protect_obj().
> 
That was it ! (strangely I missed it when I read the source.)

Thanks a lot for your help.
-- 
Etienne BERNARD   ISIA, Mines de Paris / Ecole Centrale Paris, France.
E-Mail : eb@via.ecp.fr    WWW : http://www.via.ecp.fr/~eb/    IRC : eb