[polyml] Finalizers not called on termination

2012-08-13 Thread Phil Clayton
According to profiling messages that I'm generating, when a stand-alone executable terminates, any remaining finalizers (added with CInterface.setFinal) are not run. Consequently, resources that should be freed may not be. I think I would probably expect the semantics of finalizers to be such

Re: [polyml] Lifespan of pointers to callback functions passed via C FFI

2012-08-13 Thread Phil Clayton
On 01/02/12 10:44, Phil Clayton wrote: On 29/01/12 15:57, David Matthews wrote: On 27/01/2012 20:15, Phil Clayton wrote: Thinking about explicitly deleting callbacks led me to ask whether each ML function passed as a callback has its callback reused on subsequent calls. If reuse occurs, the num