Issue when using DBF file more than 2GB
Posted: Tue Nov 12, 2024 9:53 am
Hi,
I'm going on migration VO2.7 applications to X# and I found a new issue.
We use DBF files and some of them are over than 2GB.
In VO2.7, all is OK but when I run the same program in X#, I have an error.
find a simple code for example:
We obtain this error message :
Do you know this issue and have you a solution to have the same behavior with X# program?
Thanks
Cyril
I'm going on migration VO2.7 applications to X# and I found a new issue.
We use DBF files and some of them are over than 2GB.
In VO2.7, all is OK but when I run the same program in X#, I have an error.
find a simple code for example:
Code: Select all
FUNCTION Start() AS VOID
LOCAL oDb AS dbserver
odb := dbserver{"E:\TEST.dbf",TRUE,TRUE,"DBFNTX"}
? "DBF ouvert"
? odb:FIELDGET("NoID")
? odb:GoTop()
DO WHILE !odb:EoF
? NTrim(odb:RecNo) + " NoID=" + odb:FIELDGET("NoID")
odb:Skip(100)
END DO
odb:Close()
RETURN 0
We have the same kind of issue with createIndex, reIndex, goBottom ...Description : Exception raised by CLR or external code: Le nombre est inférieur à la limite inférieure du tableau dans la première dimension.
Nom du paramètre : srcIndex
Subsystem : mscorlib
GenCode : EG_ARG Argument error
FuncSym : FIELDGET
Severity : ES_ERROR
Can Default : False
Can Retry : False
Can Substitute : False
Stack Trace :
ARRAY:COPY (Line: 0)
INPUTBUFFER:READ (Line: 0)
DBF:_READRECORD (Line: 0)
DBF:GETVALUE (Line: 0)
DBFDBT:GETVALUE (Line: 0)
COREDB:<>C__DISPLAYCLASS42_0:<FIELDGET>B__0 (Line: 0)
COREDB:DO (Line: 0)
COREDB:FIELDGET (Line: 0)
VODB:FIELDGET (Line: 0)
DBSERVER:FIELDGET (Line: 0)
DBSERVER:FIELDGET (Line: 0)
START (Line: 9)
Do you know this issue and have you a solution to have the same behavior with X# program?
Thanks
Cyril