Why am I getting stoi throw exception?
Added by Mark Petryk almost 4 years ago
I'm trying to understand why my object is throwing an exception for this variable type;
589 std::cout << FILE << ":" << LINE << " " << m_volumeOverageType.value() << std::endl;
590 m_volumeOverageType.persist( a, &TableDef().VolumeOverageTypeFieldDef );
This is a simple type value that is being stored, works for everything else in the Dbo object.
This is the trace log
src/Dbo/Job/Template.h:589 0
[Switching to Thread 0x7fffdffff700 (LWP 26865)]
Thread 10 "artecams-dev" hit Catchpoint 1 (exception thrown), 0x00007ffff629fd1d in cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#0 0x00007ffff629fd1d in _cxa_throw () at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x00007ffff79bdb38 in Wt::Utils::convert<int, boost::spirit::terminal<boost::spirit::tag::int> >(char const*, boost::spirit::terminalboost::spirit::tag::int_ const&, std::cxx11::basic_string, std::allocator > const&) (fname=, t=..., v="") at /home/serveradmin/projects/wt/src/web/WebUtils.C:435
#2 0x00007ffff759bd28 in Wt::convertAnyToAny(linb::any const&, std::type_info const&, Wt::WString const&) (v=..., type=..., format=...) at /home/serveradmin/projects/wt/src/Wt/WAny.C:625
#3 0x0000555556512c87 in Wtx::Dbo::FormModelRtm::Dbo::Job::Item::act(Wt::Dbo::FieldRef) (this=0x7fffcc01abb0, ref=...) at /opt/Wtx/Dbo/FormModel_imp.h:529
#4 0x00005555565100ce in Wt::Dbo::fieldWtx::Dbo::FormModel
#5 0x000055555650d85d in Wtx::Dbo::Field::persistWtx::Dbo::FormModel
Any help or suggestions is appreciated.
Replies (1)
RE: Why am I getting stoi throw exception? - Added by Mark Petryk almost 4 years ago
Found the problem... my code (as usual)
Sorry for the noise, guys.