Hi, FDirectories of TCheckCompilerOptsDlg isn't freed in the destructor. Please add the following lines to TCheckCompilerOptsDlg.Destroy: if FDirectories<>nil then FreeThenNil(FDirectories); Vincent.