Connection.OpenDatasets Problem

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
_Dejan_
Posts: 23
Joined: Mon 28 Dec 2009 07:30
Location: Slovenia

Connection.OpenDatasets Problem

Post by _Dejan_ » Wed 24 Sep 2014 10:35

I have problem with application after SDAC update from SDAC Pro 6.10.20 to SDAC Pro 6.11.22.
After update application start crashing when I use:

Code: Select all

Connection.OpenDatasets([table1, table2]);
if table1.FieldByName('t1').AsInteger = 0 then
 ShowMessage('ID is empty!!!');
if I run this code all is ok:

Code: Select all

table1.Open;
table2.Open;
if table1.FieldByName('t1').AsInteger = 0 then
 ShowMessage('ID is empty!!!');
Application crash with error:

Code: Select all

First chance exception at $778CC42D. Exception class EListError with message 'List index out of bounds (0)'. Process Application.exe (16700)
and mark line:

Code: Select all

if table1.FieldByName('t1').AsInteger = 0 then

_Dejan_
Posts: 23
Joined: Mon 28 Dec 2009 07:30
Location: Slovenia

Re: Connection.OpenDatasets Problem

Post by _Dejan_ » Wed 24 Sep 2014 10:40

I can also confirm that in SDAC Pro 6.10.21 work OK.

azyk
Devart Team
Posts: 1057
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Connection.OpenDatasets Problem

Post by azyk » Thu 25 Sep 2014 05:53

We couldn't reproduce the problem. Please try to compose a small sample to demonstrate the problem and send it to andreyz*devart*com.

_Dejan_
Posts: 23
Joined: Mon 28 Dec 2009 07:30
Location: Slovenia

Re: Connection.OpenDatasets Problem

Post by _Dejan_ » Thu 25 Sep 2014 07:31

Im create example and send it to your email.
Thanks.

azyk
Devart Team
Posts: 1057
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: Connection.OpenDatasets Problem

Post by azyk » Thu 25 Sep 2014 08:45

We have received your sample in email, reproduced the problem and fixed it. This fix will be included in the next SDAC build.

_Dejan_
Posts: 23
Joined: Mon 28 Dec 2009 07:30
Location: Slovenia

Re: Connection.OpenDatasets Problem

Post by _Dejan_ » Thu 02 Oct 2014 06:08

I confirm that this is fixed in new release 6.11.23

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Re: Connection.OpenDatasets Problem

Post by Dimon » Fri 03 Oct 2014 09:41

We are glad to help you.

Post Reply