[racket-dev] results of dlopen (hence ffi) persistent across evaluations?

From: John Clements (clements at brinckerhoff.org)
Date: Fri Aug 6 17:08:06 EDT 2010

On Aug 6, 2010, at 3:28 PM, Eli Barzilay wrote:

> BTW, IIRC, there is a way to load a new copy of a library, but that
> could be pretty bad.  Alternatively, there's probably a way to unload
> a library, so perhaps this could be hacked -- somehow voiding all
> references to code from it.  But I'm not sure if there's a sane way to
> do that so other things don't break.  (Where breaking could also be
> reloading a library over and over.)

Sounds reasonable.  May I add this text to the docs for ffi-lib? :

Note! On UNIX-based platforms, loaded libraries are associated with Racket or DrRacket for the duration of the process; re-evaluating ffi-lib will not force a re-load of the corresponding library.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20100806/3b3f5faa/attachment.p7s>

Posted on the dev mailing list.