title: C++ terminate called after throwing an instance of 'std::length_error', what(): basic_string::_M_create
body: <p>I am getting the following error when running under Ubuntu 16.04.</p>
  
  <p>C++ terminate called after throwing an instance of 'std::length_error', what(): basic_string::_M_create</p>
  
  <p>When I run under Ubuntu 15.04 the code runs fine.</p>
  
  <p>The gdb trace I have isolated it to the following code:
  <a href="http://imgur.com/ibvFx4B" rel="nofollow">http://imgur.com/ibvFx4B</a></p>
  
  <p>Somewhere around the connect it's generating the error.</p>
  
  <pre><code>#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-&gt;connect(DBHOST, USER, PASSWORD);
       m_con-&gt;setSchema(DATABASE);
   }
  </code></pre>
  
  <p>Any ideas why its throwing the error? It's something simple I'm sure that I have overlooked.</p>