Hello Maxime, Thursday, October 4, 2007, 2:55:41 AM, you wrote: > If I write a small C function for doing the finalizer myself, I still > wouldn't get passed the FILE * to close, only the struct foo * pointer > which is of no use. you can use global assocs list -- Best regards, Bulat mailto:Bulat.Ziganshin at gmail.com