[CONCPP-100] Exception thrown inside sql::Driver->connect Created: 2022-05-20 Updated: 2022-05-25 Resolved: 2022-05-24 |
|
| Status: | Closed |
| Project: | MariaDB Connector/C++ |
| Component/s: | General |
| Affects Version/s: | 1.0.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | leo Cluzel | Assignee: | Lawrin Novitsky |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 10 |
||
| Description |
|
I am trying to connect to my MariaDB instance through C++ code. Here is the code which I got from here (obviously changed the ip and credentials) : https://mariadb.com/docs/clients/mariadb-connectors/connector-cpp/connect/#connector-cpp-connection-methods-driver It throws the following exception at the "Establish Connection": Exception thrown: read access violation. other.theString._Mypair._Myval2 was 0xFFFFFFFFFFFFFFEF. // Main Process // Configure Connection // Use a properties map for the user name and password , , , {"tlsCA", "tls-ca-root.pem"}}); // Establish Connection // Use Connection // Close Connection // Catch Exceptions // Exit (Success) I meet this error for 32 and 64 bits |
| Comments |
| Comment by Lawrin Novitsky [ 2022-05-20 ] |
|
Thank you for your report. Is it like you are building your test program as Debug and link against our release binaries? Then that is a known issue, that is solved in 1.1 branch(not stable yet). Workarounds could be either building Release/RelWithDebInfo or building own connector binaries from source code. |
| Comment by Lawrin Novitsky [ 2022-05-24 ] |
|
I'm closing it since you have not answered so far, and I'm almost sure it's the known issue, that we won't fix in the 1.0, and it is fixed in 1.1 |
| Comment by leo Cluzel [ 2022-05-25 ] |
|
Sorry for the late response, after testing you were right, it works when building in Release mode. |