SASGIS

Веб-картография и навигация


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002674SAS.Планета[All Projects] Багpublic05-04-2015 19:2407-04-2015 17:28
Reportervasketsov 
Assigned Tovdemidov 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version141212 
Target Version150915Fixed in Version150915 
Summary0002674: Ошибка в TFileNameIteratorInFolderByMask.Next
DescriptionTFileNameIteratorInFolderByMask.Next

if FValidFindData then begin
repeat
if IsNeedProcess(FFindFileData) then begin
AFileName := FFolderNameFromRoot + FFindFileData.cFileName;
Result := True;
FValidFindData := Windows.FindNextFileW(FFindHandle, FFindFileData);
Break;
end;
until not FValidFindData;

Если IsNeedProcess возвращает false - FValidFindData вообще не меняется.
Получается бесконечный цикл.
ps. Налетел на это при попытке добавить дополнительное условие фильтрации файлов по размеру.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0015533)
vdemidov (manager)
05-04-2015 19:26

Мда. Похоже код должен быть вот такой:

  if FValidFindData then begin
    repeat
      if IsNeedProcess(FFindFileData) then begin
        AFileName := FFolderNameFromRoot + FFindFileData.cFileName;
        Result := True;
      end;
      FValidFindData := Windows.FindNextFileW(FFindHandle, FFindFileData);
    until (not FValidFindData) or Result ;
  end;

- Users who viewed this issue
User List Anonymous (2537x)
Total Views 2537
Last View 24-11-2024 02:09

- Issue History
Date Modified Username Field Change
05-04-2015 19:24 vdemidov New Issue
05-04-2015 19:25 vdemidov Reporter vdemidov => vasketsov
05-04-2015 19:25 vdemidov Status new => confirmed
05-04-2015 19:26 vdemidov Note Added: 0015533
07-04-2015 17:28 vdemidov Status confirmed => resolved
07-04-2015 17:28 vdemidov Fixed in Version => 150915
07-04-2015 17:28 vdemidov Resolution open => fixed
07-04-2015 17:28 vdemidov Assigned To => vdemidov



Copyright © 2007 - 2024 SAS.Planet Team