Finalizers and FFI

Gracjan Polak gracjan at
Fri Jun 11 10:06:25 EDT 2004

Niklas Sorensson wrote:

>>Arjan van IJzendoorn wrote:
>> > I couldn't get finalisers to work either with the newForeignPtr from
>> > this module. I didn't know how to create a proper FunPtr. In
>> > Foreign.Concurrent there is a newForeignPtr that is easier to use:
>> > [deleted]
> I seem to remeber running in to this problem a couple of years ago,
> and if I remember correctly, I came to the conclusion that finalizers do
> run at the end of the program, but *after* standard input is closed.

Yes, you are right. Thanks for the idea. Checked under GHC 6.2.


More information about the Glasgow-haskell-users mailing list