Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Problem with "mysqlpp:Result"

From: Warren Young <mysqlpp(at)etr-usa.com>
Date: Wed Oct 24 2007 - 07:25:28 EDT


ALeX wrote:
> I have this little problem, if i use this code of exemple:
> if (res) {
> mysqlpp::Row row;
> mysqlpp::Row::size_type i;
> for (i = 0; row = res.at(i); ++i) {
> cout << '\t' << row.at(0) << endl;
> }
> }
> My executable stop with "This application has requested the Runtime to
> terminate it in an unusual way.Please contact the application's
> support team for more information."

Read the sections in the user manual on exceptions. You're copying code from the simple{1,2} examples, which disable all exceptions, into a program which leaves exceptions enabled, which is the default. Therefore, the program dies the moment anything goes wrong because you're not catching the exceptions.

-- 
MySQL++ Mailing List
For list archives: 
http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=lists@pantek.com
Received on Wed Oct 24 07:25:55 2007

This archive was generated by hypermail 2.1.8 : Fri Jul 04 2008 - 00:21:37 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library