On 24 August 2012 16:52, Jan van de Sandt <[email protected]> wrote:
>
>
> On Fri, Aug 24, 2012 at 4:29 PM, Igor Stasenko <[email protected]> wrote:
>>
>> On 24 August 2012 15:55, Jan van de Sandt <[email protected]> wrote:
>> > Hello Igor,
>> >
>> > Thanks for the explanation. Closing via the class method now works fine!
>> >
>> > But I still notice that the #finalizeResourceData doesn't get called.
>> > The
>> > instance is already gone because the #allInstances method returns an
>> > empty
>> > collection. Strange ....
>> >
>> btw did you added a call to #registerAsExternalResource
>> in instance initialization method somewhere (once you have initialized
>> handle of course)?
>> because of course, if you don't register it, a finalization will never
>> be called.
>>
>
> Yes I did. If I inspect the registry instVar of
> NBExternalResourceManager>>#soleInstance than there are a lot of items
> present.
>

Okay, there is a bug indeed.. stupid wrong selector (as usual)..

try replacing 'item finalize' with 'item finalizeValues' in
NBFinalizationRegistry>>finalizeValues method

i will upload a fix and tests meanwhile.

Thanks for pointing out!

-- 
Best regards,
Igor Stasenko.

Reply via email to