I wrote a program in C++ that connects to MySQL via mysqlcppconn 6.1 in a database running on xampp (I'm using windows). It occurs that, when trying to connect to MySQL the program crashes with no error message and is closed by Windows, leaving me without clues of what happened.
# Line that generates the error:
con = driver->connect("tcp://localhost:3306", "root", "root");
I read that this was and old bug on MySQL connector with C++ but didn't find any viable solutions (other than recompiling this or that).
What could be a solution or workaround for this error?
The application code: https://dl.dropboxusercontent.com/u/85576999/DB8/dbWriteWin.h