I'm sure this is in the docs, but my readings of the docs for custodians and will-executors haven't answered it: how can I ensure that a single ffi-built cleanup procedure is called when the Racket/DrRacket process dies?
Specifically, the "portaudio" library contains this dire warning in its include file: Pa_Terminate() MUST be called before exiting a program which uses PortAudio. Failure to do so may result in serious resource leaks, such as audio devices not being available until the next reboot. My reading of the docs suggests that I want to associate a will-executor with the object representing the audio connection, and then ... start a separate thread (in a parent custodian?) that executes it? The docs appear carefully written to avoid providing any guarantee, which makes me nervous. Pointers to docs that I've missed gratefully accepted. Thanks, John
smime.p7s
Description: S/MIME cryptographic signature
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

