Access Viloation on adding SepecificOption
Posted: Thu 09 Feb 2017 13:10
I have a project that was created in Delphi 2007 and is now being ported to XE10.1. In the old Delphi we used UniDAC 4.5/4.6, now with XE10.1 we are using 6.4.
What happens is when the following lines is execute I get an Access Violation on the last line.
I know that FetchAll does not exist for connections and that I should get an exception stating just that. But that is exactly my problem. When I create a new project in XE10.1 and do the same I get exactly the expected exception.
What could be the reason for not getting the exception but an access violation?
What happens is when the following lines is execute I get an Access Violation on the last line.
Code: Select all
Connection := TUniConnection.Create (nil);
Connection.ProviderName := 'SQLite';
Connection.Database := GlobalConfigFilePath + 'Labels.s3db';
Connection.SpecificOptions.Values['ForceCreateDatabase'] := 'true';
Connection.SpecificOptions.Values['FetchAll'] := 'true';
What could be the reason for not getting the exception but an access violation?