Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

Application crashes when retrieving a string thats longer as 15 Characters (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>