access violation with local master/detail
Posted: Tue 20 Sep 2022 19:45
Hi, I'm having trouble with local master/detail, when the master dataset is tvirtualtable and the detail is tmsquery - it just crashes with each scroll in master dataset.
It was working fine in older sdac versions (i.e. 7.3.16), but the 9.x, 10.x, even the newest 10.2.0 crashes.
I was able to get rid of the exception with this change:
but this is just a "solution".
please fix it, it disallows upgrading to newer delphi versions (there is no sdac 7.3.16 for delphi alexandria)
It was working fine in older sdac versions (i.e. 7.3.16), but the 9.x, 10.x, even the newest 10.2.0 crashes.
I was able to get rid of the exception with this change:
Code: Select all
function TCRRecordSet.GetMappedDataBuf(FieldDesc: TFieldDesc; DataBuf: IntPtr; var DataLen: Word; var DataType: Word; var HasParent, IsFixed, NativeBuffer: boolean): IntPtr;
{$IFNDEF LITE}
var
MappedBufSize: Integer;
TmpBuf: IntPtr;
{$ENDIF}
begin
{$IFNDEF LITE}
if {start add}(FieldDesc is TCRFieldDesc) and {end add}(TCRFieldDesc(FieldDesc).OnDemandConverter <> nil) then begin
please fix it, it disallows upgrading to newer delphi versions (there is no sdac 7.3.16 for delphi alexandria)