Page 1 of 1

Access violation on freeing TOraQuery on iOS

Posted: Wed 25 Jun 2014 14:42
by Daniele Buttarelli
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

Re: Access violation on freeing TOraQuery on iOS

Posted: Thu 26 Jun 2014 10:20
by AlexP
Hello,

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

Re: Access violation on freeing TOraQuery on iOS

Posted: Thu 26 Jun 2014 14:43
by Daniele Buttarelli
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;

Re: Access violation on freeing TOraQuery on iOS

Posted: Fri 27 Jun 2014 06:24
by AlexP
Thank you for the information. We have reproduced and fixed the problem. This fix will be included to the next ODAC version.

Re: Access violation on freeing TOraQuery on iOS

Posted: Fri 27 Jun 2014 06:33
by Daniele Buttarelli
The same problem occurs with LiteDAC components.

Re: Access violation on freeing TOraQuery on iOS

Posted: Fri 27 Jun 2014 08:31
by AlexP
This issue is fixed for all the products.

Re: Access violation on freeing TOraQuery on iOS

Posted: Tue 08 Jul 2014 13:39
by Daniele Buttarelli
When the new version will be available?
Best regards.
Daniele

Re: Access violation on freeing TOraQuery on iOS

Posted: Thu 10 Jul 2014 11:48
by AlexP
The next build will be released in the end of the current - early next month.