Access violation when applying updates in 4.1 release

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
luis_augusto
Posts: 43
Joined: Fri 14 Oct 2005 13:45

Access violation when applying updates in 4.1 release

Post by luis_augusto » Mon 09 Jan 2012 15:31

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.

AndreyZ

Post by AndreyZ » Mon 09 Jan 2012 16:00

Hello,

We already fixed this problem. This fix will be included in the next UniDAC build.

luis_augusto
Posts: 43
Joined: Fri 14 Oct 2005 13:45

Too late

Post by luis_augusto » Mon 09 Jan 2012 18:39

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

Post by AndreyZ » Tue 10 Jan 2012 07:13

To avoid this problem, you should replace the following code in the MemData unit (procedure TMemData.ApplyUpdates):

Code: Select all

if OldCurrentItem.Flag = flUsed then
  CurrentItem := OldCurrentItem;
with the following code:

Code: Select all

if (OldCurrentItem = nil) or (OldCurrentItem.Flag = flUsed) then
  CurrentItem := OldCurrentItem;

WesleyAS
Posts: 1
Joined: Thu 29 Dec 2011 12:59

Post by WesleyAS » Thu 19 Jan 2012 00:26

AndreyZ wrote:Hello,

We already fixed this problem. This fix will be included in the next UniDAC build.
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?

Best Regards.
Gelson / Wesley

AndreyZ

Post by AndreyZ » Thu 19 Jan 2012 10:56

We are going to release the new UniDAC build in a week or two.

Uli65
Posts: 12
Joined: Wed 22 Feb 2012 10:11

Post by Uli65 » Wed 22 Feb 2012 10:30

AndreyZ wrote:We are going to release the new UniDAC build in a week or two.
When will the new build released?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 23 Feb 2012 12:56

Hello,

The new build will be released next week.

Post Reply