MySQL Forums
Forum List  »  Connector/C++

Application crashes when retrieving a string thats longer as 15 Characters
Posted by: Max Besicke
Date: February 20, 2015 06:28AM

Hey,

Everythings works fine when i retrieve a < 15 Char String.

but when i try to get a string thats longer as 15 chars my application crashes / toggles a Breakpoint.

I'm using Visual Studio 2013 Community Edition.

while (res->next()) {
			*Active = res->getInt("active");
			*id = res->getInt("id");
			*username = res->getString("name");
			*Sub = res->getString("sub"); // Crash
			stringstream stmtvar;
			stmtvar << GetMySQLStatement2() << date << "' WHERE hwid = '"<< hwid <<"'";
			stmt->executeUpdate(stmtvar.str());
			delete res;
			delete stmt;
			delete con;
			return MYSQL_RETURN_SUCCESSFULL;
		}


best regards: Max

Options: ReplyQuote


Subject
Views
Written By
Posted
Application crashes when retrieving a string thats longer as 15 Characters
2282
February 20, 2015 06:28AM


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.