List:MySQL++« Previous MessageNext Message »
From:Jim Wallace Date:January 29 2009 2:48am
Subject:RE: stack trace corrupted
View as plain text  
You're throwing away the first row without checking its return.  I'd try
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


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?


MySQL++ Mailing List
For list archives:
To unsubscribe:

stack trace corruptedDavid Ang29 Jan
  • RE: stack trace corruptedJim Wallace29 Jan
  • Re: stack trace corruptedWarren Young29 Jan
    • Re: stack trace corruptedDavid Ang29 Jan