MySQL Forums
Forum List  »  Connector/C++

Error on get_driver_instance();
Posted by: Dani Carmona
Date: June 15, 2021 12:28PM

Luis Silva Wrote:
-------------------------------------------------------
> Hi Dani,
>
> Just add the Dnsapi.lib to the link libraries.
>
> Cheers,
> Luís Silva


Thank you! Now I have a runtime error.... My program stops when calling
"An external component caused an exception":

The error seems to happen when I call driver = get_driver_instance(); in driver.h, this function:

inline static sql::Driver * get_driver_instance_by_name(const char * const clientlib)
{
check_lib();
return _get_driver_instance_by_name(clientlib); -> This line crashes.
}

Any idea? I'm using Visual Studio 2019 Enterprise, debug x64, static connector (debug 64 bits library).

Options: ReplyQuote


Subject
Views
Written By
Posted
926
January 16, 2021 08:58AM
490
February 04, 2021 09:00AM
343
February 04, 2021 09:26AM
369
June 12, 2021 03:55PM
370
June 14, 2021 03:24AM
Error on get_driver_instance();
809
June 15, 2021 12:28PM


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.