I don't understand the default
finalizeResourceData: handle
������ handle isNull ifTrue: [ ^ self ].
������ handle free.
������ handle beNullwhen handle is an ExternaData, free is defined as in ExternalStructure class as:
free
������ "Free the handle pointed to by the receiver"
������ (handle ~~ nil and:[handle isExternalAddress]) ifTrue:[handle free].
������ handle := nil.
but beNull is not defined on nil.I can define my own finalizeResourceData: but the default one, does not work apparently.On Tue, Apr 24, 2018 at 2:06 PM, Esteban Lorenzano <estebanlm@gmail.com> wrote:hi,there is nothing like that and I do not recommend messing with the registry in general.but��� you can always extend the classes for your use, is around��FFIExternalResourceManager. cheers,EstebanOn 24 Apr 2018, at 14:48, Serge Stinckwich <serge.stinckwich@gmail.com> wrote:
I'm using autoRelease on some FFIOpaqueObject instances.I need to test some behavior when I delete explicitly one of these objects. ���How to remove these objects from the finalization list, in order they are not freed two times.Something like ignoreFinalization ?--Serge Stinckwich
UMI UMMISCO 209 (SU/IRD/UY1)http://www.doesnotunderstand.o
"Programs must be written for people to read, and only incidentally for machines to execute." rg/
--Serge Stinckwich
UMI UMMISCO 209 (SU/IRD/UY1)http://www.doesnotunderstand.
"Programs must be written for people to read, and only incidentally for machines to execute." org/