Access violation on freeing TOraQuery on iOS

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Daniele Buttarelli
Posts: 56
Joined: Fri 02 Aug 2013 07:51

Access violation on freeing TOraQuery on iOS

Post by Daniele Buttarelli » Wed 25 Jun 2014 14:42

I have a serious problem after upgrading to 9.3.9 ODAC.
I get an access violation every time I free a TOraQuery.

My environment:
Delphi XE4 Update 1
Devart ODAC 9.3.9
iOS 6.1.3

Example:
MyQuery := TOraQuery.Create( nil );
try
...
finally
MyQuery.Free; <---- ACCESS VIOLATION !!!!!!
end;

Are you able to fix this bug as soon as possible?
Thanks.
Daniele

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

Re: Access violation on freeing TOraQuery on iOS

Post by AlexP » Thu 26 Jun 2014 10:20

Hello,

We couldn'te reproduce the problem. Please provide the full code, on which the problem is reproduced.

Daniele Buttarelli
Posts: 56
Joined: Fri 02 Aug 2013 07:51

Re: Access violation on freeing TOraQuery on iOS

Post by Daniele Buttarelli » Thu 26 Jun 2014 14:43

Here is a code sample:

function Online_GetQuery(const ASQL: String): TOraQuery;
var
MyQuery: TOraQuery;
begin
MyQuery := TOraQuery.Create( nil );
MyQuery.FetchAll := True;
MyQuery.Options.QueryRecCount := False;
MyQuery.Session := OraSession;
MyQuery.SQL.Add( ASQL );
Result := MyQuery;
end;


with Online_GetQuery( SQL_SELECT ) do begin
try
Open;
...
finally
Free; <---- ACCESS VIOLATION
end;
end;

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

Re: Access violation on freeing TOraQuery on iOS

Post by AlexP » Fri 27 Jun 2014 06:24

Thank you for the information. We have reproduced and fixed the problem. This fix will be included to the next ODAC version.

Daniele Buttarelli
Posts: 56
Joined: Fri 02 Aug 2013 07:51

Re: Access violation on freeing TOraQuery on iOS

Post by Daniele Buttarelli » Fri 27 Jun 2014 06:33

The same problem occurs with LiteDAC components.

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

Re: Access violation on freeing TOraQuery on iOS

Post by AlexP » Fri 27 Jun 2014 08:31

This issue is fixed for all the products.

Daniele Buttarelli
Posts: 56
Joined: Fri 02 Aug 2013 07:51

Re: Access violation on freeing TOraQuery on iOS

Post by Daniele Buttarelli » Tue 08 Jul 2014 13:39

When the new version will be available?
Best regards.
Daniele

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

Re: Access violation on freeing TOraQuery on iOS

Post by AlexP » Thu 10 Jul 2014 11:48

The next build will be released in the end of the current - early next month.

Post Reply