I am getting the following error when running under Ubuntu 16.04.
C++ terminate called after throwing an instance of 'std::length_error', what(): basic_string::_M_create
When I run under Ubuntu 15.04 the code runs fine.
The gdb trace I have isolated it to the following code: https://i.stack.imgur.com/g5Yzb.jpg
Somewhere around the connect it's generating the error.
#define DBHOST "tcp://127.0.0.1:3306"
#define USER "root"
#define PASSWORD " "
#define DATABASE "db_mmofps"
void CDBMySQL::Connect()
{
m_driver = mysql::get_mysql_driver_instance();
m_con = m_driver->connect(DBHOST, USER, PASSWORD);
m_con->setSchema(DATABASE);
}
Any ideas why its throwing the error? It's something simple I'm sure that I have overlooked.