Issue when using DBF file more than 2GB

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
Cyril

Issue when using DBF file more than 2GB

Post 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
User avatar
robert
Posts: 4558
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: Issue when using DBF file more than 2GB

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Cyril

Re: Issue when using DBF file more than 2GB

Post by Cyril »

we use the 2.20 version
Post Reply