Exception in dac150.bpl

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
vanmeir
Posts: 13
Joined: Thu 19 May 2011 09:34
Location: The Netherlands
Contact:

Exception in dac150.bpl

Post by vanmeir » Sat 18 Feb 2012 10:38

Hello dear DevArt team,

I'm not sure if this is the right place to post my comment but I'm doing it anyway ;-)

The day before yesterday I updated my SDAC components (and also MyDAC) to the latest release (SDAC 6.1) and now some if my programs get exceptions on the dac150.bpl.
I've looked it up and it appears to relate to the ApplyUpdates statement in the case of an empty dataset.

Example:
I have a form with three 'cached updates' queries. Sometimes the third remains empty (for that moment).

In my code I have the instructions:

.
.
Q1.ApplyUpdates;
Q2.ApplyUpdates;
Q3.ApplyUpdates;
.
.

That worked fine for some years.
Now I get an exception on the third line;

When I change that into

.
.
Q1.ApplyUpdates;
Q2.ApplyUpdates;

if Q3.UpdatesPending then
Q3.ApplyUpdates;
.
.

the exception does not occur.

Because of the size of my project I'm not goïng to rewrite all these lines so for now I'm goïng back to SDAC 5.1 but I hope you're able to resolve this issue in the next update.

Kind regards,

Frans van Meir,
iterate software

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

Post by AlexP » Thu 23 Feb 2012 12:58

Hello,

Thank you for the information.
We have already fixed the problem.
This fix will be included in the next build.
The next build will be released next week.

Post Reply