void WtApplication::sidebar()
{
Wt::WContainerWidget *p = new Wt::WContainerWidget(root());
  p->resize(WLength::Auto, 30);
 Wt::WHBoxLayout *lay = new Wt::WHBoxLayout();
 lay->addWidget(new Wt::WText("About TCC", root()));


 p->setLayout(lay);
//p->setId("sidebar");
WContainerWidget *result = new WContainerWidget();
 Wt::WFileUpload *upload = new Wt::WFileUpload(root());
 upload->setFileTextSize(40);
upload->setProgressBar(new WProgressBar());
 Wt::WPushButton *uploadButton = new Wt::WPushButton("Send", root());
                         // empty text

 uploadButton->clicked().connect(this, &WtApplication::populate);


}
void WtApplication::populate() {
        //insertion
        std::string spool ;
        spool= upload->spoolFileName();
        ptrA a;
        { A *tuple = new A();
                        tuple->store  =  Wt::WString(spool).toUTF8();

                    try { Transaction tt(session_);
                     a = session_.add(tuple);
                        tt.commit();
                   } catch (...) {}

  }
}

in this not giving error. but when i have run this after giving port
address. it give segmentation fault

http://paste.ubuntu.com/689771/
-- 
Parvinder Rajput
website:- www.parvinder.co.in

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to