Page 1 of 2

Error with xHArbour of FW8.02

Posted: Tue Feb 12, 2008 4:12 pm
by Maurizio
With the xHArbour link with FW 8.02 I have this error

Error DBFCDX/1012 Corruption detected: TEST1.cdx

#include "Fivewin.ch"

Function MAin()
Local aDbf := {}

REQUEST DBFCDX

if ! file("TEST1.DBF")
aDbf := {}
AADD (aDbf, {"TEST", "C", 1 , 0 })
AADD (aDbf, {"LOGI", "L", 1 , 0 })
dbcreate("TEST1" , aDbf,"DBFCDX")
endif
if ! file("TEST1.CDX")
use ("TEST1") via "DBFCDX"
index on field->TEST tag I_TEST to ("TEST1.CDX") ;
FOR field->LOGI == .T.
USE
use ("TEST1") via "DBFCDX"
browse()
USE

endif

Return nil

Re: Error with xHArbour of FW8.02

Posted: Tue Feb 12, 2008 4:34 pm
by Richard Chidiak
Maurizio

I haven't loaded fwh 8.02 yet but have you tried erasing the cdx index first ?

HTH

Richard

Creating CDX syntax

Posted: Tue Feb 12, 2008 5:14 pm
by ukoenig
I put a sample of my index-creation for
CDX in the forum today.
It shows the syntax and informations
of the structure, when it is done.

Regards
Uwe

Posted: Tue Feb 12, 2008 5:48 pm
by nageswaragunupudi
The problem is not with FWH. What Mr Maurizio says is he is getting this error after installing xHarbour provided with 8.02

Re: Error with xHArbour of FW8.02

Posted: Tue Feb 12, 2008 6:22 pm
by Enrico Maria Giordano
No errors using latest xHarbour from CVS.

EMG

Posted: Tue Feb 12, 2008 7:18 pm
by Antonio Linares
Maurizio,

Please download xharbour.exe from our website again, thanks

It seems that the previous build got a bug that was fixed later on.

Posted: Thu Feb 14, 2008 9:12 am
by Maurizio
Antonio

Now is OK , thank

MAurizio

Posted: Thu Feb 14, 2008 2:15 pm
by James Bott
Antonio,

I just downloaded the latest xHarbour and I am now getting this error.

Error: Unresolved external '_HB_PCREPOS_LIBRARY' referenced from C:\XHARBOUR\LIB\RTL.LIB|regex

Regards,
James

Posted: Thu Feb 14, 2008 2:17 pm
by Enrico Maria Giordano
I get no errors using latest xHarbour from CVS.

EMG

Posted: Thu Feb 14, 2008 2:29 pm
by James Bott
OK, more strange info.

I reinstalled xHarbour from FWH 8.01 and I am still getting the same error. So I wrote this test program:

Code: Select all

#include "fivewin.ch"
function main()
   msgInfo("Hello World")
return nil
And it gives me the error also. I have no idea what is going on.

James

Posted: Thu Feb 14, 2008 2:35 pm
by nageswaragunupudi
Mr James

You shoud include pcrepos.lib to the link script. This lib is available in lib folder of xharbour.

Posted: Thu Feb 14, 2008 2:45 pm
by James Bott
NageswaraRao,

>You shoud include pcrepos.lib to the link script.

OK, that solved it.

I was compiling without it before so I am guessing that there is a new call to that lib in the new FWH 8.02 that wasn't in 8.01.

Thanks,
James

Posted: Thu Feb 14, 2008 3:01 pm
by Enrico Maria Giordano
The library pcrepos.lib is required since 2005, if I've look correctly in xHarbour changelogs. :-)

EMG

Posted: Thu Feb 14, 2008 3:43 pm
by nageswaragunupudi
How do we know how latest is the xHabour ( bcc ) build released with FWH 8.02 ? I mean till what change log in xharbour.org ?

Posted: Thu Feb 14, 2008 3:56 pm
by James Bott
Enrico,

>The pcrepos.lib is required since 2005

I find that it was not in buildx.bat in 7.10 and it was in buildx.bat in 8.01. I don't have 7.11 or 7.12 so I can't tell exactly when it was first used in FWH.

I expect I still had xHarbour from 7.10 installed when I upgraded FWH from 8.01 to 8.02. However, I didn't get the error when using FWH 8.01 and xHarbour from 7.10.

James