Hey Calvin,

2010/3/24 calvin <[email protected]>:
> Next, I would like to populate the combobox with all the country names in the
> table, and so the code snippet written for this is:
>
> WComboBox *ctry = new WComboBox;
>
> dbo::ptr<Country> c;
> typedef dbo::collection< dbo::ptr<Country>> Countries;
> Countries countries = session_.find<Country>("id < ?").bind(100);

This should be "session_.find<Country>("where id < ?").bind(100);

> for (Countries::const_iterator i = countries.begin(); i != countries.end(); 
> i++
> ){
>        c = *i;
>        ctry->addItem(c->country);
> }
>
> The code compiles and build fine. However, at run time, the program stalls at:
>
> Countries countries = session_.find<Country>("id < ?").bind(100);
>
> and WebSession throws an error, and creates a new session...

Does the error message (from SQlite3) not provide any useful information?

Regards,
koen

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to