Clipper Incompatible CDX Indexs

This forum is for general support of Xbase++
Post Reply
Message
Author
dougtanner
Posts: 32
Joined: Fri Jan 20, 2012 9:24 am

Clipper Incompatible CDX Indexs

#1 Post by dougtanner »

I am converting several large system from Clipper 5.2 to Alaska. I am having a problem if xBase++ creates a CDX Index, it is incompatible with Clipper. Clipper will crash with a memory exception and dump its registers. When I delete the Indexes and let Clipper create them, both Clipper and xBase++ runs them ok. I have added the " i := dbeinfo(COMPONENT_ORDER, CDXDBE_MODE, CDXDBE_COMIX) command to my dbesys but is doesn't seem to help with the compatibility. Eventually this problem will go away. Does anyone have any experience with this issue?

Doug

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Clipper Incompatible CDX Indexs

#2 Post by rdonnay »

Are you using COMIX with Clipper or DBFCDX?
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: Clipper Incompatible CDX Indexs

#3 Post by Auge_Ohr »

dougtanner wrote:

Code: Select all

dbeinfo(COMPONENT_ORDER, CDXDBE_MODE, CDXDBE_COMIX)
your Code is OK, but it is for COMPONENT_ORDER only. you need to open DBF "prepared" for Cl*pper using COMPONENT_DATA

Code: Select all

   //
   // using Cl*pper Comix/SixDrive
   //
   DbeInfo( COMPONENT_DATA, FOXDBE_CREATE_2X, .T. )
   DbeInfo( COMPONENT_DATA, FOXDBE_LOCKMODE, FOXDBE_LOCKMODE_CLIPPER )
   DbeInfo( COMPONENT_DATA, FOXDBE_LOCKRETRY, 100000 )  // Default is 3

   //
   // now _ORDER Component
   //
   Dbeinfo( COMPONENT_ORDER, CDXDBE_MODE, CDXDBE_COMIX)
   DbeInfo( COMPONENT_ORDER, CDXDBE_LOCKRETRY, 100000 ) // Default is 3

   //
   // do NOT use together with Cl*pper
   //
   * DbeInfo(COMPONENT_ORDER, DBE_LOCKMODE, LOCKING_EXTENDED)
p.s. SET COLLATION to same as your Cl*pper DBF use
greetings by OHR
Jimmy

dougtanner
Posts: 32
Joined: Fri Jan 20, 2012 9:24 am

Re: Clipper Incompatible CDX Indexs

#4 Post by dougtanner »

Roger,

Yes I am. The SIX CDX Drivers were the only ones that worked reliably in several of my applications.

Auge_Uhr,

I will try that in my DBWSys

Doug

Post Reply