Hi Getmem,
Thank you for the review.
Have you got write access to the ccr svn? I missed your attached zip because I assumed dev was now under version control lock/checkouts from the svn.
After a quick look,I see only 2 changes - can you confirm?
1- Commenting out in form.create
{ Self.AutoAdjustLayout(lapAutoAdjustForDPI, Self.DesignTimeDPI,
Screen.PixelsPerInch, Self.Width, ScaleX(Self.Width, Self.DesignTimeDPI));}
2- Changing fieldname from DownloadURL -> DownloadZipURL
If they are the only 2 changes, I can update the svn version with (1) easily enough. It's a good idea to add to the Version History section in umain with any changes.
Re:Memory leak
It seems to come from this recursive procedure within Form.Create (which I'd like to keep)
procedure TfrmMain.FormCreate(Sender: TObject);
var
sLang, INIFilePath: string;
procedure CreateUniqueINI(aCount: integer);
// Recursively loop until correct INI found, or new one created
begin
INIFilePath := GetAppConfigFile(False) + IntToStr(aCount);
CFG := TIniFile.Create(INIFilePath);
if CFG.ReadString('Options', 'AppPath', ProgramDirectory) <> ProgramDirectory then
begin
CFG.Free; // Ditch the old one
Inc(aCount);
CreateUniqueINI(aCount); // Make a new one
end;
end;
//... more code
Any suggestions to solve it? CFG is a private form member.
I'll hold fire until I see your thoughts.