So I have a widget class:

EditBlogPost

it has a member variable:

Wt::Dbo::ptr<model::BlogPost> _post;

When someone hits the save button and there's a postgresql exception raise
(key conflict in my case):

try {
  t.commit();
catch ( std::exception& e ) {
  myWText->setText(e.what());
}

the exception is never caught .. the whole thread dies with:

Warning: Wt::Dbo:Session died with 1 active objects

if I have _post as a private member .. the next http post happens and
automagically segfaults trying to get session mapping or something.

if I leave _post as a function local .. it doesn't segfault .. but still my
catch is never reached.

----

In 3.2.0 .. the catch is reached and no evil weird errors.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to