samth
2017-12-31 16:25:34

@slack1 yes, you can just use rename-in twice


slack1
2017-12-31 17:13:20

ah thanks


targetstorm
2018-1-1 06:19:06

I’m using Dr Racket and FFI. When I load a DLL it seems to be holding on to it even after I hit the “Stop” button. This causes the post-build step for copying the DLL next to my racket file to fail b/c Dr Racket is holding onto the file and the copy needs to overwrite it. Any idea how to tell Dr Racket to let go of this file (without closing Dr Racket)?


lexi.lambda
2018-1-1 07:16:56

@targetstorm From the docs for ffi-lib: > Due to the way the operating system performs dynamic binding, loaded libraries are associated with Racket (or DrRacket) for the duration of the process. Re-evaluating ffi-lib (or hitting the Run button in DrRacket) will not force a re-load of the corresponding library. I don’t fully understand this paragraph, due to the existence of dlclose, but it seems like maybe a fundamental limitation?