XML Registry: empty file `reg.xml` - Access Violation in `TRegistry.Create`
Summary
Running application with empty reg.xml (zero length file) leads to AV in TRegistry.Create.
Steps to reproduce
- Create empty file
reg.xml(or truncate existing) - it must be an actual 'registry path' (such as~/.config/vendor_name/app_name/) - Create simple application with:
...
var
reg: TRegistry;
begin
reg:= TRegistry.Create;
...