|
|
Choosing A Webhost: |
Re: unexpected abortion when printing rows: msg#00083db.mysql.c++
On 8/22/05, ZeeGeek <zeegeek@xxxxxxxxx> wrote: > I used ResUse as the result type and printed rows in a while loop, but when > I used this method in a class member function, it would abort after printing > the lines, the codes in the function are: > > mysqlpp::Query query = con.query(); > mysqlpp::ResUse res; > mysqlpp::Row row; > > query << "select * from db_entry"; > > res = query.use(); > while (row = res.fetch_row()) { > std::cout << row["id"] << std::endl; > } > > but it didn't abort if I just put them in main() without using class. Am I > missing any important thing? > It seems that it had thrown out an "end of result" exception and I didn't catch it so it aborted, but I still don't know why it just happened when in class member functions. > -- > Dell Inspiron 600m > Pentium-M 1.6G > 512MB, 60G > ATI 9000 Mobility -- Dell Inspiron 600m Pentium-M 1.6G 512MB, 60G ATI 9000 Mobility -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Using mysql c/c++ API project, ZeeGeek |
|---|---|
| Next by Date: | VC 7.1, Craig Snyder |
| Previous by Thread: | unexpected abortion when printing rows, ZeeGeek |
| Next by Thread: | Re: unexpected abortion when printing rows, Warren Young |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |