Two registry readers in u_dzClassUtils still use TRegistry's separate queries, which r2591 ([bugs:#134]) replaced in TRegistry_TryReadBool/Integer/String:
TRegistry_TryReadStringValues reads every value name of the key with TRegistry.ReadString, which raises ERegistryException for any value that is not a string. So it fails on every key that contains a single REG_DWORD or REG_BINARY value, without any race. A value deleted between GetValueNames and ReadString is stored as an empty string.IRegistryGuard.TryReadStringList checks ValueExists('Count') and then calls ReadInteger, and checks ValueExists(ItemN) and then calls ReadString. A value deleted or changed in between raises ERegistryException or gives an empty string; a 'Count' or item of the wrong type raises.Found in the review of the #134 fix, by reading the code, not observed.
Possible fix: read through TRegistry_TryReadInteger / TRegistry_TryReadString, which read with a single RegQueryValueEx call and do not raise. What TryReadStringValues should do with a value that is not a string (skip it, or convert it) needs a decision.
Fixed in revision [r2601].
Related
Commit: [r2601]