View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006767 | JEDI VCL | 00 JVCL Components | public | 2023-05-18 19:37 | 2024-01-11 08:41 |
Reporter | bazilio | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Embarcadero® Delphi 11 Version 2 | OS | Windows | OS Version | 7+ |
Product Version | Daily / GIT | ||||
Target Version | Fixed in Version | ||||
Summary | 0006767: in TJvMemoryData.Field[...].OnValidate sometimes the old field value comes in | ||||
Description | in TJvMemoryData.Field[...].OnValidate sometimes the old field value comes in. | ||||
Steps To Reproduce | Assign TJvMemoryData.Field[].OnValidate and append many records (more then one screen) | ||||
Additional Information | This bug does not occur on previous versions of delphi because the code TField.GetData has been changed but CurrentRecord is sometimes not equal to ActiveRecord: function TField.GetData(var Buffer: TValueBuffer; NativeFormat: Boolean = True): Boolean; begin if FDataSet = nil then DataSetMissingError; if FValidating and not (FDataSet.State in [dsOldValue, dsCurValue]) and ((FDataSet.CurrentRecord = -1) or (FDataSet.ActiveRecord = FDataSet.CurrentRecord)) then begin Result := FValueBuffer <> nil; if Result and (Buffer <> nil) then CopyData(FValueBuffer, Buffer); end else Result := FDataSet.GetFieldData(Self, Buffer, NativeFormat); end; | ||||
Tags | No tags attached. | ||||
|
Project.zip (91,659 bytes) |
|
In Delphi 11.3 the TField.GetData method changed again. Maybe they fixed that bug. |
|
I sorry, but we wrote the wrong information in the bug report. First affected version is 11.3, noy 11.2 Yes that method has been changed in 11.3 Update 3, but it didn't fix the bug. We see the wrong behavior in 11.3 Update 3 and 12. But unfortunately that test project works well in the last versions of delphi, but actual more complicated application doesn't work. We will try to make better test case to reproduce the bug. |
Date Modified | Username | Field | Change |
---|---|---|---|
2023-05-18 19:37 | bazilio | New Issue | |
2023-05-18 19:37 | bazilio | File Added: Project.zip | |
2024-01-02 14:17 | AHUser | Assigned To | => AHUser |
2024-01-02 14:17 | AHUser | Status | new => feedback |
2024-01-02 14:17 | AHUser | Note Added: 0022067 | |
2024-01-02 15:00 | AHUser | Assigned To | AHUser => |
2024-01-11 08:41 | bazilio | Note Added: 0022071 | |
2024-01-11 08:41 | bazilio | Status | feedback => new |