xsharp.eu • Issue when using DBF file more than 2GB
Page 1 of 1

Issue when using DBF file more than 2GB

Posted: Tue Nov 12, 2024 9:53 am
by Cyril
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:

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 obtain this error message :
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)
We have the same kind of issue with createIndex, reIndex, goBottom ...

Do you know this issue and have you a solution to have the same behavior with X# program?

Thanks
Cyril

Re: Issue when using DBF file more than 2GB

Posted: Tue Nov 12, 2024 12:35 pm
by robert
Cyril,
Which version of X#?
I believe this was fixed in one of our last builds. IIRC this was included in 2.20, also in the public build.

Robert

Re: Issue when using DBF file more than 2GB

Posted: Wed Nov 13, 2024 4:18 pm
by Cyril
we use the 2.20 version