Access violation on freeing TOraQuery on iOS
-
- Posts: 56
- Joined: Fri 02 Aug 2013 07:51
Access violation on freeing TOraQuery on iOS
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
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
Hello,
We couldn'te reproduce the problem. Please provide the full code, on which the problem is reproduced.
We couldn'te reproduce the problem. Please provide the full code, on which the problem is reproduced.
-
- Posts: 56
- Joined: Fri 02 Aug 2013 07:51
Re: Access violation on freeing TOraQuery on iOS
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;
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
Thank you for the information. We have reproduced and fixed the problem. This fix will be included to the next ODAC version.
-
- Posts: 56
- Joined: Fri 02 Aug 2013 07:51
Re: Access violation on freeing TOraQuery on iOS
The same problem occurs with LiteDAC components.
Re: Access violation on freeing TOraQuery on iOS
This issue is fixed for all the products.
-
- Posts: 56
- Joined: Fri 02 Aug 2013 07:51
Re: Access violation on freeing TOraQuery on iOS
When the new version will be available?
Best regards.
Daniele
Best regards.
Daniele
Re: Access violation on freeing TOraQuery on iOS
The next build will be released in the end of the current - early next month.