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
1126
January 16, 2021 08:58AM
594
February 04, 2021 09:00AM
426
February 04, 2021 09:26AM
454
June 12, 2021 03:55PM
483
June 14, 2021 03:24AM
Error on get_driver_instance();
1053
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.