Hey Jan, Your code looks fine, except for one problem which seems to be a design mistake in our API since you are not the first to make the same assumption:
2010/12/27 Jan Köster <[email protected]>: > TuxistApp::TuxistApp(const Wt::WEnvironment& env) > : Wt::WApplication(env) > { > Wt::Dbo::backend::Postgres db_con(getenv("TUXCMS_SQLCONFIG")); //will be > replaced agqainst multi db support > db_con.setProperty("show-queries", "true"); > Session = new Wt::Dbo::Session; > Session->setConnection(db_con); The connection object should outlive the session object (i.e. should be on the heap as well). We will at least make this more evident in the documentation, and perhaps modify the API to avoid the confusion related to this ! Regards, koen ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
