Page 1 of 1

New bug in 7.1.4 TMemData.ApplyUpdates

Posted: Sat 31 Dec 2011 15:14
by Justmade
In Line 7205 it write,

Code: Select all

      if OldCurrentItem.Flag = flUsed then
        CurrentItem := OldCurrentItem;
However, the OldCurrentItem, which can be nil, will cause AV exception and halt the apply update.

The old version do not have the if line.

I myself had changed the code to below to prevent the exception.

Code: Select all

      if (OldCurrentItem = nil) or (OldCurrentItem.Flag = flUsed) then
        CurrentItem := OldCurrentItem;
Just for your reference.

Posted: Tue 03 Jan 2012 10:31
by AndreyZ
Hello Justmade,

Thank you for the information. We have fixed this problem. We will include this fix to the next MyDAC build.