Rick,
Thanks for info. Under what VFP vesrsions did you test it? Did you report it as a bug to MS?
>Sergey,
>This last I checked, SYS(2000) was still leaving file handles open, so if you make a lot of these calls, you'll find you're "leaking" memory. I use the equivalant API calls instead and have no problems.
>Declare Integer FindFirstFile in win32api string lpFileName, string @ lpFindFileData
>Declare Integer FindNextFile in win32api integer hFindFile, string @ lpFindFileData
>Declare Integer FindClose in win32api integer hFindFile
>
>Rick
>
--sb--