Page 1 of 1

Connection.OpenDatasets Problem

Posted: Wed 24 Sep 2014 10:35
by _Dejan_
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

Re: Connection.OpenDatasets Problem

Posted: Wed 24 Sep 2014 10:40
by _Dejan_
I can also confirm that in SDAC Pro 6.10.21 work OK.

Re: Connection.OpenDatasets Problem

Posted: Thu 25 Sep 2014 05:53
by azyk
We couldn't reproduce the problem. Please try to compose a small sample to demonstrate the problem and send it to andreyz*devart*com.

Re: Connection.OpenDatasets Problem

Posted: Thu 25 Sep 2014 07:31
by _Dejan_
Im create example and send it to your email.
Thanks.

Re: Connection.OpenDatasets Problem

Posted: Thu 25 Sep 2014 08:45
by azyk
We have received your sample in email, reproduced the problem and fixed it. This fix will be included in the next SDAC build.

Re: Connection.OpenDatasets Problem

Posted: Thu 02 Oct 2014 06:08
by _Dejan_
I confirm that this is fixed in new release 6.11.23

Re: Connection.OpenDatasets Problem

Posted: Fri 03 Oct 2014 09:41
by Dimon
We are glad to help you.