close-foreign-library (was: Re: [cffi-devel] Re: running examples - errors?)

Luís Oliveira luismbo at gmail.com
Thu Dec 15 11:55:21 UTC 2005


On 2005-sep-27, at 01:43, Surendra Singhi wrote:
> [1]I didn't find any function for closing foreign libraries. This  
> is needed
> because, some libraries (wxWidgets, for instance) has static  
> initializers
> problem, once the program finishes, if the interpreter tries to run  
> the
> program again the library will crash as things don't get  
> initialized properly
> second time.

Hello Surendra,

I just pushed a patch to cffi-luis that implements close-foreign- 
library for CMUCL, SBCL, Allegro, CLISP, Lispworks and OpenMCL. It's  
still unexported so you'll have to call it using (cffi::close-foreign- 
library <name>).

Do let me know if it works for you.

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Equipa Portuguesa do Translation Project
http://www.iro.umontreal.ca/translation/registry.cgi?team=pt




More information about the cffi-devel mailing list