MySQL Forums
Forum List  »  Connector/C++

Connector crashing on Windows
Posted by: Eric Bouchard
Date: December 21, 2022 09:03AM

I am trying to install and use the c++ connector. I downloaded the DEBUG version of the connector. Linked the mysqlcppconn8.lib to my project, added the libcrypto-1_1.dll, libssl-1_1.dll and mysqlcppconn8-2-vs14.dll to my project directory. It compiles, seems to work, but crashes when opening a session. It looks like a bad library linked to the wrong dll or something (even though I did use both from the windows debug package).
I also added the preprocessor flag STATIC_CONCPP.

A simple: mysqlx::Session Sess(mysqlx://"root@127.0.0.1") crashes in the function:

Session(SessionSettings settings)
try
: Session_detail(settings)
{}
CATCH_AND_WRAP

with multiple memory errors like:
cdk::foundation::Generic_error at memory location 0x00AEE30C
[rethrow] at memory location 0x00000000.
mysqlx::abi2::r0::Error at memory location 0x00AEE9F0.


I use VS 2019 on windows. Downloaded the latest connector on DEBUG (I compile on DEBUG too).

Any idea?

Options: ReplyQuote


Subject
Views
Written By
Posted
Connector crashing on Windows
427
December 21, 2022 09:03AM
284
December 21, 2022 09:41AM
202
December 21, 2022 10:36AM
201
December 21, 2022 11:03AM
257
December 21, 2022 11:28AM
205
December 21, 2022 11:38AM
318
December 21, 2022 11:56AM
176
December 21, 2022 12:11PM
210
December 21, 2022 12:25PM
188
December 21, 2022 12:47PM
193
December 21, 2022 12:55PM
223
December 21, 2022 01:11PM
207
December 21, 2022 01:29PM
208
December 21, 2022 02:52PM
272
December 22, 2022 04:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.