List:MySQL++« Previous MessageNext Message »
From:Alex Boyer Date:March 25 2008 4:39pm
Subject:mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;
View as plain text  
Hello,
 
New to mysql++. Downloaded latest version and followed instructions in
readme.vc...  mysql++.dll seems to compile just fine, but when I run any
of the examples, they crash.
 
In the simple1 example, I took the code down to just before
mysqlpp::Connection con; and it worked...  Adding that statement back in
causes the program to crash.
 
This doesn't work:
main(int argc, char *argv[])

{

// Get database access parameters from command line

const char* db = "test", *server = "localhost", *user = "root", *pass =
"l3tm31n";

if (!parse_command_line(argc, argv, &db, &server, &user, &pass)) {

return 1;

}

// Connect to the sample database.

mysqlpp::Connection conn(false);

}

 

This works

main(int argc, char *argv[])

{

// Get database access parameters from command line

const char* db = "test", *server = "localhost", *user = "root", *pass =
"l3tm31n";

if (!parse_command_line(argc, argv, &db, &server, &user, &pass)) {

return 1;

}

// Connect to the sample database.

}

Thanks,

Alex 
 
--------------------------------------------------------


Disclaimer:
This email is confidential and may be privileged or otherwise protected by work product
immunity or other legal rules. It is intended solely for the use of the individual to
whom it is addressed. If you are not the intended recipient, be advised that you have
received this email in error and that any use, disclosure, dissemination, forwarding,
printing, saving or copying of any of its contents is strictly prohibited. If you have
received this in error please let us know by email reply, then delete this email from
your computer system. You may not take any other action in reliance on this email.
Any views or opinions presented are solely those of the author and do not necessarily
represent those of Hobby Products International, Inc.

Thread
mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer25 Mar
  • RE: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer25 Mar
    • RE: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer25 Mar
      • Re: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connectioncon;Warren Young25 Mar
        • RE: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer25 Mar
          • RE: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer26 Mar
            • RE: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer26 Mar
              • Re: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connectioncon;Warren Young26 Mar
                • RE: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer26 Mar
                • RE: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer26 Mar
                  • RE: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer26 Mar
                  • Re: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connectioncon;Warren Young27 Mar
                    • RE: mysql++ 3.0.1 / VC++ 2008: Samples crashing on mysqlpp::Connection con;Alex Boyer27 Mar