[cffi-devel] Re: close-foreign-library

Surendra Singhi efuzzyone at netscape.net
Thu Dec 15 20:57:48 UTC 2005


Luís Oliveira <luismbo at gmail.com> writes:

> 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>).
>

Thanks.

> Do let me know if it works for you.
>

Sure, I will test it and let you know in couple of days.

-- 
Surendra Singhi
http://www.public.asu.edu/~sksinghi/index.html

,----
| Great wits are sure to madness near allied,
| And thin partitions do their bounds divide.
| 
|     (John Dryden, Absalom and Achitophel, 1681)
`----




More information about the cffi-devel mailing list