Sr. Antonio,
Fiz testes neste PRG:
#INCLUDE "FIVEWIN.CH"
FUNCTION Main()
Local cTemp := "MYFILE.DBF", cFileCdx := "MYFILE.CDX"
Local nI := 1
SET DATE TO BRITISH
SET EPOCH TO 2000
SET CENTURY ON
SET DELETED ON
REQUEST DBFCDX
RDDSETDEFAULT( "DBFCDX" )
IF FILE("MYFILE.CDX")
ERASE MYFILE.CDX
ENDIF
IF FILE("MYFILE.DBF")
ERASE MYFILE.DBF
ENDIF
DBCreate(cTemp,{ {"COD","C",10,0} ,;
{"DES","C",197,0}}, "DBFCDX" )
SELE 0 ; USE (cTemp) EXCLUSIVE NEW ALIAS TEMP VIA "DBFCDX"
INDEX ON field->COD TAG COD TO (cFileCdx)
INDEX ON field->DES TAG DES TO (cFileCdx)
SET INDEX TO (cFileCdx)
FOR nI = 137 TO 161
DBAppend()
NEXT
FOR nI = 1 TO 250
DBAppend()
NEXT
dbcloseall()
RETURN NIL
Compilar e executar e depois trocar o campo DES de 197 por 201, Compilar e executar novamente:
DBCreate(cTemp,{ {"COD","C",10,0} ,;
{"DES","C",
201,0}}, "DBFCDX" )
Com xHarbour Compiler build 1.1.0 (SimpLex)
Erro:
hb_cdxPageLeafEncode: FreeSpace calculated wrong!.
Com xHarbour Compiler build 1.1.0 (SimpLex) (Rev. 6195):
Erro:
Não houve erro!
