Exception in DbCreate (B2.2.1 Vulcan dialect)

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Thomas
Posts: 93
Joined: Thu Oct 25, 2018 11:39 am

Exception in DbCreate (B2.2.1 Vulcan dialect)

Post by Thomas »

Hi all,

I get a System.Exception {XSharp.RDD.RddError} executing the following code (B2.2.1 Vulcan dialect):

Code: Select all

DbCreate("c:TempTest.dbf", {{"Date", "D", 10, 0}})


{"Eine Ausnahme vom Typ ""XSharp.RDD.RddError"" wurde ausgelöst."}
bei XSharp.RDD.DBF._dbfError(Exception ex, UInt32 iSubCode, UInt32 iGenCode, String strFunction, String strMessage, UInt32 iSeverity)
bei XSharp.RDD.DBF._checkFields(RddFieldInfo info)
bei XSharp.RDD.Workarea.AddField(RddFieldInfo info)
bei XSharp.RDD.DBF.AddField(RddFieldInfo info)
bei XSharp.RDD.Workarea.CreateFields(RddFieldInfo[] aFields)
bei XSharp.CoreDb.<>c__DisplayClass34_0.<Create>b__0()
bei XSharp.CoreDb.Do[T](Func`1 action)
bei XSharp.CoreDb.Create(String cName, RddFieldInfo[] aStruct, Type rddType, Boolean lNew, String cAlias, String cDelim, Boolean lKeep, Boolean lJustOpen)
bei XSharp.CoreDb.<>c__DisplayClass32_0.<Create>b__0()
bei XSharp.CoreDb.Do[T](Func`1 action)
bei XSharp.CoreDb.Create(String cName, RddFieldInfo[] aStruct, String cRddName, Boolean lNew, String cAlias, String cDelim, Boolean lKeep, Boolean lJustOpen)
bei XSharp.RT.Functions.DbCreate(__Usual[] Xs$Args)


The value 10 for the column size seems to be wrong. This was no error in Vulcan.

Regards
Thomas
User avatar
Chris
Posts: 4913
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Exception in DbCreate (B2.2.1 Vulcan dialect)

Post by Chris »

Hi Thomas,

Thanks, I see VO works with that as well, also with a LOGIC column of any size, apparently it ignores the size for those types. Will log this to be fixed, for now please just change the size to the correct value from DATE ("8").
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Thomas
Posts: 93
Joined: Thu Oct 25, 2018 11:39 am

Exception in DbCreate (B2.2.1 Vulcan dialect)

Post by Thomas »

Thanks Chris!!
Post Reply