Would you have the remote operating system/samba version
Does it drop all directory entries 15% of the time or 15% of the entries all of the time? I suppose the latter, right?
A sample program always helps when testing: in determining whether this applies to all remote systems (i.e. samba or also Windows hosts), perhaps pinpoint Lazarus/samba versions, etc.
Does the attached program show the errors?
Lazarus 1.1 (trunk), r37399, FPC 2.6.1 x86, Windows x64 Vista: works against a Debian Samba 3.5.6~dfsg-3squeeze8 (x64) with 25 files, 96, and 2001 files in a directory
(Tested the 2001 files by clearing the directory edit, pasing the directory again for a large number of times. Number of files always shows 2001)
Thanks,
BigChimp