FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour hb_cdxPageSeekKey
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
hb_cdxPageSeekKey
Posted: Mon Oct 22, 2007 12:29 PM

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,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
hb_cdxPageSeekKey
Posted: Mon Oct 22, 2007 02:36 PM

Darrell,

I forward your question to the [x]Harbour RDD's guru Przemek

I will let you know what he says

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
hb_cdxPageSeekKey
Posted: Mon Oct 22, 2007 04:50 PM

Thank you Antonio

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
hb_cdxPageSeekKey
Posted: Mon Oct 22, 2007 05:17 PM

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?

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
hb_cdxPageSeekKey
Posted: Mon Oct 22, 2007 06:09 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
hb_cdxPageSeekKey
Posted: Tue Oct 23, 2007 04:01 PM

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,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
hb_cdxPageSeekKey
Posted: Tue Oct 23, 2007 07:10 PM

Excellent! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9
Joined: Tue Aug 28, 2007 09:09 AM
hb_cdxPageSeekKey
Posted: Mon Dec 10, 2007 09:58 AM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
hb_cdxPageSeekKey
Posted: Mon Dec 10, 2007 10:06 AM

Barry,

Are you also accessing the DBF from XBase++ besides xHarbour ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9
Joined: Tue Aug 28, 2007 09:09 AM
hb_cdxPageSeekKey
Posted: Mon Dec 10, 2007 10:08 AM

Hi Antonio,

No I am only accessing the DBF via xHarbour.

Kind Regards,

Barry

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
hb_cdxPageSeekKey
Posted: Mon Dec 10, 2007 10:12 AM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9
Joined: Tue Aug 28, 2007 09:09 AM
hb_cdxPageSeekKey
Posted: Mon Dec 10, 2007 10:21 AM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
hb_cdxPageSeekKey
Posted: Mon Dec 10, 2007 10:39 AM

Barry,

many thanks!

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion