View Issue Details

IDProjectCategoryView StatusLast Update
0007821ADK-Xojo-V4RBOtherpublic2016-12-01 09:08
ReporterSergey PashkovAssigned ToSergey Pashkov 
Status resolvedResolutionfixed 
Product Version6.6.x 
Target Version6.6.xFixed in Version6.6.x 
Summary0007821: Negative Int32 numbers returned by V4RB 64-bit plugin are incorrect

I have in a database in a table a field "Anfangs_Saldo" defined as VLONG

MsgBox meineDatenbank.TKonten.Field("Anfangs_Saldo").getstring + " " + cstr(meineDatenbank.TKonten.Anfangs_Saldo.Value)

the MessageBox shows me.

-57638 -57638 when I compile the app in 32Bit
-57638 4294909658 when I compile the app in 64Bit

is this a problem in Xojo or in ValentinaPlugIn or 64Bit Mode for Valentina?
In database the value -57638 is stored ;-)
Steps To ReproduceThis field method is declared as int:
int Long_GetValue( REALobject inFld, vint32 param )

Resulting value is correct, but the error occurs at the intermediate ValentinaPlugin->Xojo step.

Example plugins declare following C types for Integer RB type: long, RBInteger, unsigned char.

Changing int to long (or RBInteger) helps and the returned value is correctly represented at the Xojo side.
TagsNo tags attached.


Sergey Pashkov

Sergey Pashkov

2016-12-01 09:02

developer   ~0009373

Fixed in 6.6.4

Issue History

Date Modified Username Field Change
2016-11-28 16:10 Sergey Pashkov New Issue
2016-11-28 16:11 Sergey Pashkov Steps to Reproduce Updated View Revisions
2016-11-30 14:07 Sergey Pashkov Assigned To => Sergey Pashkov
2016-11-30 14:07 Sergey Pashkov Status new => assigned
2016-12-01 09:02 Sergey Pashkov Note Added: 0009373
2016-12-01 09:02 Sergey Pashkov Status assigned => resolved
2016-12-01 09:02 Sergey Pashkov Fixed in Version => 6.6.x
2016-12-01 09:02 Sergey Pashkov Resolution open => fixed
2016-12-01 09:08 Ruslan Zasukhin Summary Int32 numbers returned by V4RB 64-bit plugin are incorrect => Negative Int32 numbers returned by V4RB 64-bit plugin are incorrect