Hi Nick,
I have not run your code, but since VFP uses RAM up to a certain point, and then the HD, for me this is a non-issue. I use cursors mostly as a replacement for temporary files, and since I have plenty of RAM and HD space, and since VFP deletes the cursors it temporarily writes to disk, memo bloat or index bloat is never any problem.
>Thanks Tore/Fabio, however it looks like Fox actually deals with this bloat itself but deleted records must to be reused. Memory usage seems to increase to a certain point and then gets cleaned-up and starts again. Try the code below.
>
>Nick
>
>