Page 1 of 1
hb_cdxPageSeekKey
Posted: Mon Oct 22, 2007 12:29 pm
by cdmmaui
Hello,
I am trying to read and write information to a xBase++ database (RDD=FOXCDX) application from my xHarbour/FWH application. However, I continue to receive the following error = hb_cdxPageSeekKey - wrong parent key. What can I do to eliminate the error. How can I change the xBase++ application to DBFCDX so the memo fields are read properly? I tried to change the xBase++ before but had problems with the memo fields not reading properly when using DBFCDX. Thank you in advance for your help!
Sincerely,
Posted: Mon Oct 22, 2007 2:36 pm
by Antonio Linares
Darrell,
I forward your question to the [x]Harbour RDD's guru Przemek
I will let you know what he says
Posted: Mon Oct 22, 2007 4:50 pm
by cdmmaui
Thank you Antonio
Posted: Mon Oct 22, 2007 5:17 pm
by cdmmaui
Antonio,
I am try to build the search keys using xHarbour. Will the xBase++ corrupt the keys when writing to the database and index files?
Posted: Mon Oct 22, 2007 6:09 pm
by Antonio Linares
Darrell,
I can't say it for sure, but its a good practise not to use different RDD engines even if they are supossedly compatibles
Posted: Tue Oct 23, 2007 4:01 pm
by cdmmaui
Antonio,
I added the following code to the xBase++ dbesys after the
DbeBuild( 'FOXCDX', 'FOXDBE', 'CDXDBE' ) function
DbeInfo( COMPONENT_DATA, FOXDBE_CREATE_2X, .T. )
DbeInfo( COMPONENT_DATA, FOXDBE_LOCKMODE, FOXDBE_LOCKMODE_2X )
And the application seems to working ok and we have not received any error messages.
Regards,
Posted: Tue Oct 23, 2007 7:10 pm
by Antonio Linares
Excellent!
Posted: Mon Dec 10, 2007 9:58 am
by Barry O'Brien
Hi All,
I have been experiencing the same error mentioned in this topic as well as another:
hb_cdxPageSeekKey: wrong parent key
hb_cdxIndexPageRead: read index page failed
I am using latest xHarbour.com release and Fivewin 7.05 reading\writing to standard DBF files using DBFCDX.
When one of these errors occurs it has the effect of writing zeroes to the DBF where I would expect a normal number (e.g. 176547). This number is part of an index so obviousy I get data integrity errors from here on in!
I'm trying to find out some more information about where the error occurs, but in the meantime I'm not really sure where to start looking so any suggestions gratefully received!
Kind regards,
Barry
Posted: Mon Dec 10, 2007 10:06 am
by Antonio Linares
Barry,
Are you also accessing the DBF from XBase++ besides xHarbour ?
Posted: Mon Dec 10, 2007 10:08 am
by Barry O'Brien
Hi Antonio,
No I am only accessing the DBF via xHarbour.
Kind Regards,
Barry
Posted: Mon Dec 10, 2007 10:12 am
by Antonio Linares
Barry,
Then if you are using the latest xHarbour.com release, you should report it to xHarbour.com as it seems a RDD issue
FWH does not modify or interfere in the RDD activity
Posted: Mon Dec 10, 2007 10:21 am
by Barry O'Brien
Thanks Antonio,
When I get an answer from xHarbour.com I will post it here in case it can help anyone else in future.
Kind regards,
Barry
Posted: Mon Dec 10, 2007 10:39 am
by Antonio Linares
Barry,
many thanks!