[fpc-devel] FindFirst / FindNext gives random results in FPC 2.1.3

Graeme Geldenhuys graemeg.lists at gmail.com
Mon May 14 12:43:42 CEST 2007

On 5/14/07, Michael Van Canneyt <michael at freepascal.org> wrote:
> No ordering is guaranteed.

Thought so... I couldn't find any reference to the result order in the
Delphi or Kylix help.

> Not in windows, not in Linux.
> That you get them ordered is most likely because you created them in
> that order, and the directory entries were therefor filled 'ordered'...

What is strange is that it always gave consistent results in Delphi 7
and FPC 2.0.4, 2.0.5 and 2.1.1.

As a workaround, I store the results in a sorted TStringList and work
from there...  Thanks for the quick response Michael.

Graeme Geldenhuys

General error, hit any user to continue.

More information about the fpc-devel mailing list