Exception in win64 App

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
MrAndini
Posts: 19
Joined: Mon 07 Oct 2013 11:18

Exception in win64 App

Post by MrAndini » Tue 03 Nov 2015 13:26

Hello

I am using latest Devart UNIDAC 6.2.8 with Builder XE7
When I try to connect to the SQLite database I get the following exception
"C0000005 ACCESS_VIOLATION"

Access violation at address 0000000000EFA7F3, Read of address 000000010000000F

Exception occurs after following code

Code: Select all

		SQLUniConnection->ProviderName = "SQLite";
		SQLUniConnection->Database = DatabaseFilename;
		SQLUniConnection->SpecificOptions->Values["ForceCreateDatabase"] = "True";
		SQLUniConnection->SpecificOptions->Values["Direct"] = "True";
		SQLUniConnection->Connect();
This has been working fine as 32 bit application under C++ Builder XE7
But gives me the exception since changing to windows 64 bit target.

Exception occurs when I execute the Connect
Any assistance would be appreciated.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Exception in win64 App

Post by MaximG » Wed 04 Nov 2015 09:25

Thank you for the information. We have reproduced the issue, and we will inform you about the results shortly.

MrAndini
Posts: 19
Joined: Mon 07 Oct 2013 11:18

Re: Exception in win64 App

Post by MrAndini » Mon 09 Nov 2015 12:35

Any update on this exception?

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Exception in win64 App

Post by MaximG » Tue 01 Dec 2015 09:39

We are working on fixing the "C0000005 ACCESS_VIOLATION" error occurring when using UniDAC in the Embarcadero C++Builder XE7 64-bit environment.

As a workaround, try the following:

a) Copy the liteprovider210.bpl library from [UniDAC Install folder]\Bin\Win64 to C:\Windows\System32;
b) Set the project option "Packages\Runtime Packages\Link with runtime packages" to True;
c) Compile the project;
d) Make sure the provided code is executed with no errors.

MrAndini
Posts: 19
Joined: Mon 07 Oct 2013 11:18

Re: Exception in win64 App

Post by MrAndini » Tue 01 Dec 2015 14:19

Hello

I had to copy a number of other bpl files from the directory to windows/system32

However once this was done it does compile and run.
I prefer not to have to distribute with the runtime libraries if possible so look forward to a final solution.
Thanks for at least getting my code development back up and running again.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Exception in win64 App

Post by MaximG » Wed 02 Dec 2015 08:34

The describe issue occurred only on Embarcadero C++Builder compiler 64-bit with disabled parameter 'Link with runtime packages'. We understand that the suggested solution is a workaround. We are investigating the issue and will inform you as soon as any results are available.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Exception in win64 App

Post by MaximG » Tue 08 Dec 2015 08:34

We have already fixed the error, and the fix will be included in the next build. The new build will be released by the end of the week or in the early next week.

MrAndini
Posts: 19
Joined: Mon 07 Oct 2013 11:18

Re: Exception in win64 App

Post by MrAndini » Sun 20 Dec 2015 07:14

Thanks new version fixes the issue and runs fine.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Exception in win64 App

Post by MaximG » Mon 21 Dec 2015 07:26

We are glad to see the problem resolved. Please don't hesitate to contact us with questions concerning UniDAC usage.

Post Reply