I Think everything is fine But it give me segmentation fault.
{
root()->addWidget(new WText("DEPARTMENT"));
Wt::WComboBox *combo = new Wt::WComboBox(root());
combo->addItem("Civil");
combo->addItem("IT");
combo->addItem("CSE");
combo->addItem("ECE");
combo->addItem("ME");
combo->addItem("EE");
combo->addItem("PRODUCTION");
combo->activated().connect(this, &WtApplication::populate);
}
void WtApplication::populate() {
combo->setCurrentIndex(2);
ptrform acadmicbranch;
form *tuple = new form();
tuple->stream = combo->currentText().toUTF8();
try { Transaction tt(session_);
acadmicbranch = session_.add(tuple);
tt.commit();
} catch (...) {}
}
Please help me
--
Parvinder Rajput
website:- www.parvinder.co.in
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest