Access violation when applying updates in 4.1 release
-
luis_augusto
- Posts: 43
- Joined: Fri 14 Oct 2005 13:45
Access violation when applying updates in 4.1 release
When user applies update on a cacheupdated dataset that has no pending updates it is getting an "Access violation.." exception.
Table1.cachedupdate:=true;
Table1.open;
table1.applyupdates; <===="Access violation"
table1.commitupdates;
table1.close;
This had not occurred in previous releases.
Table1.cachedupdate:=true;
Table1.open;
table1.applyupdates; <===="Access violation"
table1.commitupdates;
table1.close;
This had not occurred in previous releases.
-
AndreyZ
-
luis_augusto
- Posts: 43
- Joined: Fri 14 Oct 2005 13:45
Too late
What changes do I have to make in the source code in order do avoid this issue. The last version has corrected an important issue for me and I would not like to step back and wait for the next release.
-
AndreyZ
To avoid this problem, you should replace the following code in the MemData unit (procedure TMemData.ApplyUpdates):with the following code:
Code: Select all
if OldCurrentItem.Flag = flUsed then
CurrentItem := OldCurrentItem;Code: Select all
if (OldCurrentItem = nil) or (OldCurrentItem.Flag = flUsed) then
CurrentItem := OldCurrentItem;Dear AndreyZ, we are modifing our system changing from bde to unidac and we found the same problem. Occours that we dont have the source code to make changes. Please, do you have a prevision of a new build?AndreyZ wrote:Hello,
We already fixed this problem. This fix will be included in the next UniDAC build.
Best Regards.
Gelson / Wesley