Re: [Pharo-users] UFFI and autoRelease

2018-04-26 Thread Ben Coman
On 26 April 2018 at 18:09, Serge Stinckwich wrote: > > You don't reply to my original question, Ben :-) I didn't know the answer :P and I wasn't near an Image where I could poke around and speculate. Having a poke around now, but my thoughts are speculative - the few

Re: [Pharo-users] UFFI and autoRelease

2018-04-26 Thread Esteban Lorenzano
> On 26 Apr 2018, at 12:09, Serge Stinckwich wrote: > > > > On Wed, Apr 25, 2018 at 11:07 PM, Ben Coman > wrote: > > > On 25 April 2018 at 23:08, Serge Stinckwich

Re: [Pharo-users] UFFI and autoRelease

2018-04-25 Thread Ben Coman
On 25 April 2018 at 23:08, Serge Stinckwich wrote: > I don't understand the default > > finalizeResourceData: handle > handle isNull ifTrue: [ ^ self ]. > handle free. > handle beNull > > > when handle is an ExternaData, free is defined as in

Re: [Pharo-users] UFFI and autoRelease

2018-04-25 Thread Serge Stinckwich
I don't understand the default finalizeResourceData: handle handle isNull ifTrue: [ ^ self ]. handle free. handle beNull when handle is an ExternaData, free is defined as in ExternalStructure class as: free "Free the handle pointed to by the receiver" (handle ~~ nil

Re: [Pharo-users] UFFI and autoRelease

2018-04-24 Thread Esteban Lorenzano
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, Esteban > On 24 Apr 2018, at 14:48, Serge Stinckwich wrote: > > > I'm

[Pharo-users] UFFI and autoRelease

2018-04-24 Thread Serge Stinckwich
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