I see. Ok - I re-wrote this code like this:
FDialog.SetFileTypeIndex(FFileTypeIndex);
if FFileTypes.Count > 0 then
begin
FFileTypes.AllocNativeBuffer;
try
FDialog.SetFileTypes(FFileTypes.Count, FFileTy…
Can you describe for what it can be used (sets FileTypeIndex without file types) I move FDialog.SetFileTypeIndex(FFileTypeIndex); above "if" block, but not sure that it can be reason of come side effects.
Why it should be freed in described methods if TLMDMemIniFile is created in TLMDIniCtrl component? Lini gets pointer to TLMDIniCtrl.FMemIniFile and it's destroyed in
destructor TLMDIniCtrl.Destroy;
begin
if Assigned(FMemIniFile) then
FreeAn…