Page 1 of 1

Exception in win64 App

Posted: Tue 03 Nov 2015 13:26
by MrAndini
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.

Re: Exception in win64 App

Posted: Wed 04 Nov 2015 09:25
by MaximG
Thank you for the information. We have reproduced the issue, and we will inform you about the results shortly.

Re: Exception in win64 App

Posted: Mon 09 Nov 2015 12:35
by MrAndini
Any update on this exception?

Re: Exception in win64 App

Posted: Tue 01 Dec 2015 09:39
by MaximG
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.

Re: Exception in win64 App

Posted: Tue 01 Dec 2015 14:19
by MrAndini
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.

Re: Exception in win64 App

Posted: Wed 02 Dec 2015 08:34
by MaximG
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.

Re: Exception in win64 App

Posted: Tue 08 Dec 2015 08:34
by MaximG
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.

Re: Exception in win64 App

Posted: Sun 20 Dec 2015 07:14
by MrAndini
Thanks new version fixes the issue and runs fine.

Re: Exception in win64 App

Posted: Mon 21 Dec 2015 07:26
by MaximG
We are glad to see the problem resolved. Please don't hesitate to contact us with questions concerning UniDAC usage.