Subject: [ruby-ffi] Re: Struct/ManagedStruct and GC behaviour |
From: rogerdpack |
Date: 12/21/09 5:40 PM |
To: ruby-ffi |
*can* be collected, there is in fact no guarantee that objects are in fact ever collected by the GC. Depending on the implementation, there might not be sufficient ruby/java memory pressure to cause a GC event, so the objects are not collected, and the native memory is never freed.I should have added a footnote that just because it
Is there a #destroy method? Which reminds me of dl's #malloc method. Also a question. In the old dl world there was dl/win32 which was a dl implementation of Win32API. Would there be any interest in seeing an FFI port of the same? -r