- changed status to resolved
TObjectDataset Range Check Error
Issue #186
resolved
I tryed create simple
List:=IList<TMyModel>;
ObjectDataset.DataList:=List as ObjectList;
JvUltimDBGrid.Datasource.Dataset:=ObjectDataset;
If MyModel have only one field,is OK. But when MyModel have more then one field in DBGrid show only First Col and First Row Value and next Col raised Range Check Error;
Problem is in:
function TAbstractObjectDataset.GetFieldData(Field: TField;
{$IFDEF DELPHIXE4_UP}var{$ENDIF} Buffer: TValueBuffer;
NativeFormat: Boolean): Boolean;
...
...
...
Data := PVariantList(LRecBuf + SizeOf(TArrayRecInfo))[Field.Index]; <--Field Index is out of range
PVariantList have allways only one member.
How to correct this please?
Comments (5)
-
repo owner -
repo owner fixed issue
#186→ <<cset 5d0f5a8ba7f1>>
-
repo owner - edited description
- changed component to Data.ObjectDataSet
-
repo owner - changed component to ObjectDataSet
-
repo owner - changed version to 1.2
- Log in to comment
fixed issue
#186→ <<cset 5d0f5a8ba7f1>>