
11 Jun
2004
11 Jun
'04
10:11 a.m.
Arjan van IJzendoorn wrote:
foreign import ccall "..." finaliserCreator :: IO (FunPtr (Ptr a ->
IO ()))
and then
finaliser <- finaliserCreator
AFAIK this creates some dynamic machine code in malloce'd area, so there is need to free it afterward with freeHaskellFunPtr. Are you doing that? How? And when? I did not find any suitable place in my code to call freeHaskellFunPtr. -- Pozdrawiam, Regards, Gracjan