TRegistry_TryReadBool(_Reg, ...) in u_dzClassUtils first queries type and size with TRegistry.GetDataInfo and then reads the value with ReadString or ReadInteger. If another process deletes the value, or changes it to a longer string, in between, the read raises ERegistryException ("Failed to get data for ..."). It does that also with ErrorHandling = ehNoException, which promises False / the Default for a value that cannot be used. TRegistry_ReadBool is built on it.
Found in the review of r2589 (features #33) by reading the code, not observed.
Possible fix: with ehNoException, catch ERegistryException around the read and return False. TRegistry_TryReadString and TRegistry_TryReadInteger have the same window between ValueExists/GetDataType and the read; they have no ErrorHandling parameter, but their documentation says they return False in every case other than success.
Fixed in revision [r2591].
Related
Commit: [r2591]