EXC_BAD_ACCESS when i call conn.query()
Posted by: jose plano
Date: February 09, 2012 02:50PM

Hi all i had this simple code



#include <iostream>
#include "mysql++.h"

using namespace mysqlpp;

int main (int argc, char * const argv[]) {

try
{
Connection conn(false);
conn.connect("TheDB", "10.45.0.212", "xxxx", "xxxx");
conn.query();
}
catch (std::exception &e)
{
std::cout << "exception occurred..." << std::endl;
std::cout << "---" << e.what();

}

std::cout << "Hello, World!\n";
return 0;
}





but when i try to execute it, i get EXC_BAD_ACCESS and i don't know why

i'm using:

Xcode 3.2 32-bit version
Mac os X 10.6.7

and linking the source with libmysqlpp.dylib

any idea of what happend? thanks in advacen!!

Options: ReplyQuote


Subject
Views
Written By
Posted
EXC_BAD_ACCESS when i call conn.query()
1391
February 09, 2012 02:50PM


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.