dbTalk Databases Forums  

Data4's Seek method hanging indefinitely

comp.databases.xbase.codebase comp.databases.xbase.codebase


Discuss Data4's Seek method hanging indefinitely in the comp.databases.xbase.codebase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
abubakarm@gmail.com
 
Posts: n/a

Default Data4's Seek method hanging indefinitely - 06-09-2008 , 10:14 AM






Hi all,
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
this?

Regards,

,,ab

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.