[plt-scheme] about writing scheme extension

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Jul 27 15:10:32 EDT 2002

>   When writing MzScheme extensions howcome 
> there's only "scheme_initialize()" and 
> "scheme_reload()" but no "scheme_finalize()"
> or "scheme_cleanup()". How can I make sure
> resource allocated by the scheme extension such 
> as shared memory segment are detached after the 
> scheme program quits?

MzScheme currently has no mechanism for "unloading" an extension.
After an extension is loaded, it stays active until MzScheme exits.

To perform an action when MzScheme exits, either atexit() or custodians
plus scheme_add_atexit_closer() should do want you want.


Posted on the users mailing list.