nlffi and memory management

Matthias Kretschmer <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
Hello,

I have a question about nlffi. Is it possible to add an object 
allocated by to the smlnj heap, so that the garbage collector will 
remove it if no ml value points to it? I thought of using weak pointers 
for this, to call a finalizer which frees the real object wrapped in 
some ML value, but I would like to do it more "directly" without having 
to go through a list of weak pointers on each GC signal.

--
Matthias Kretschmer



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.