On 05/29/2013 01:08 PM, Maxim Fomin wrote: > Actually it fails because _aaDelX calls gc, and gc is not reenterable. > It has nothing to do with static or thread locals. Right, you currently can't perform GC operations in a finalizer. Removing an element of a hashtable may trigger an internal reorganization which in turn allocates memory.