From what I found out, it has to do with a NULL memory pointer or corrupted record indicator. Try packing the DBF you were trying to LOCATE into. This clean up should straighten up any record pointer problems.
Circes9 is right. If the DBF itself is corrupt, ie. it can't be openned due to header problems, then packing it would cause even more problems. Fix any structure problems first.
However, if the DBF is intact and all that is wrong is a large amount of records marked as deleted, a packing would do it some good.
Well, this happens in the new code on little database (about 200 records, no one deleted). I repeatably LOCATE records in different conditions. This error occurs after 5th - 6th run.
My suspicion is some invalid memory handling. The routine works well first 4 times, then failes. I am thinking of using another compiler version.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.