HI !
Can someone again kindly advice me of reading (and understanding) the changes file. Thank you.
I see that Lazarus 2.0.12 is out, but it seems the fpc part has not changed (file names and zip sizes are same)
I will test that later when I have time so I assume the error still exist.
Now the problem is with TBufDataset.
Code that perfectly works with laz2.0.8/fpc 3.0.4 does not work any more causing access violation error.
db := TBufDataset.Create(nil);
try
db.FieldDefs.Clear;
with db.FieldDefs do
begin
Add('loc', ftString, 4);
Add('cfm',ftBoolean)
end;
db.CreateDataset;
db.IndexDefs.Add('loc','loc',[ixPrimary]);
db.Open;
wkd := 0;
while not dmData.Q1.Eof do
begin
db.Append;
db.Fields[0].AsString := dmData.Q1.Fields[0].AsString;
db.Fields[1].AsBoolean := False;
db.Post;
inc(wkd);
dmData.Q1.Next
end;
When execution comes first time to line dp.post Access violation error is created.
I tried to find what would be the difference reading changes documents but I could not find (understand) any reason.