Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

8.0.11 JDBC api crash VS2017 (no replies)

$
0
0
I have built openssl 1.0.2o, mySQL 8.0.11, and mySQL connector C++ 8.0.11 from source with the following configuration:

-Static library
-Static runtime
-x64
-VS2017

Created a simple application and linked it with
libeay32.lib;mysqlclient.lib;mysqlcppconn8-static-mt.lib;mysqlcppconn-static-mt.lib;ssleay32.lib

#define STATIC_CONCPP
#define CONCPP_BUILD_STATIC
#define CPPCONN_PUBLIC_FUNC
#include <driver.h>

int main()
{
sql::Driver *mDriver;
mDriver = get_driver_instance();
return 0;
}

The application crashes when it unloads:

file: client_plugin.cc function: mysql_client_plugin_deinit
plugin_list[2] read access violation.

Truth be told, this file that throws the exception is in the mySQL solution, not the connector, but as my project that uses mysqlclient.lib works fine (granted I don't use the mysql_client_plugin family of calls), I decided to post in this thread.

Feels like the MSVC++ runtime destroys plugin_list before it destroys NativeDriverWrapper.
...or... i may missed something in building.

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>