You're throwing away the first row without checking its return. I'd try
removing
mysqlpp::Row row = res.fetch_row();
Look at simple3.cpp example which is almost identical.
-----Original Message-----
From: David Ang [mailto:davidang@stripped]
Sent: Thursday, January 29, 2009 1:41 PM
To: plusplus@stripped
Subject: stack trace corrupted
Hi
I just integerated mysql++ to my application using vs 2008.
However, when on debug build, I get a stack trace corrupted issue.
I don't receive this when I'm on release build.
My code is pretty simple:
mysqlpp::Query query = mMySQLConnection.query("select * from scores");
if(mysqlpp::UseQueryResult res = query.use())
{
mysqlpp::Row row = res.fetch_row();
while (mysqlpp::Row row = res.fetch_row())
{
}
}
Once the function call ends, i would receive the stack corrupted issue.
Can anyone tell me how to fix this please?
Thanks.
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=1