Open GoogleCodeExporter opened 9 years ago
Thanks. We'll check it.
Original comment by liuxiaos...@gmail.com
on 9 Aug 2013 at 4:13
Thanks for your patch. We think we can add 1 line to resolve this problem.
Data.Sorted := AList;
Data.Unsorted := TStringList.Create;
try
Data.Unsorted.Assign(AList);
Data.Unsorted.Sorted := False; // added this line to avoid exception
EnumModules(GetModuleProc, @Data);
finally
AList.Sorted := False;
AList.Assign(Data.Unsorted);
AList.Sorted := True;
Data.Unsorted.Free;
end;
How about your opinion?
Original comment by liuxiaos...@gmail.com
on 10 Aug 2013 at 10:41
Yes it will fix issue with exception
But the rest of the code is to improve performance by using sorted list when
searching symbol names instead of slower linear IndexOf in unsorted list (I
have noticed some comment about this improvement but I guess it was not fully
completed)
Original comment by VitaliyG...@gmail.com
on 10 Aug 2013 at 9:12
Original issue reported on code.google.com by
VitaliyG...@gmail.com
on 9 Aug 2013 at 11:41Attachments: