Data4's Seek method hanging indefinitely - 06-09-2008 , 10:14 AM
through codebase I have a *.dbf file. I have got this file from a
friend's pc (i also have this file's *.cdx file). In my code, which
works perfect on other similar files, there is a Data4 object called
"datafile" and when i call its method seek(char *), the call never
returns from this seek method. It seems the file that I got from my
friend's pc is somehow corrupt in some way that is hard to find out.
If I open this file in CDBF Viewer (version 1.35) the files open
properly and shows all the data rows. Also an important thing is that
although the seek method is not working, if i call datafile.positon
method, it works just fine (no hangs like the seek method).
Can someone plz tell me what maybe wrong with these files and why is
the code not returning from the seek method? How can I detect any
corruption of file, is there a built way in codebase to deal with