MPWhy am I getting stoi throw exception?
Added by Mark Petryk over 5 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 >(char const*, boost::spirit::terminal 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::FormModel::act(Wt::Dbo::FieldRef) (this=0x7fffcc01abb0, ref=...) at /opt/Wtx/Dbo/FormModel_imp.h:529 #4 0x00005555565100ce in Wt::Dbo::field, int>(Wtx::Dbo::FormModel&, int&, std::__cxx11::basic_string, std::allocator > const&, int) (action=..., value=@0x7fffcc00bd98: 0, name="volumeOverageType", size=-1) at /opt/Wt4/include/Wt/Dbo/Field_impl.h:204 #5 0x000055555650d85d in Wtx::Dbo::Field::persist >(Wtx::Dbo::FormModel&, Wtx::Dbo::FieldDefBase*) (this=0x7fffcc00bd30, a=..., fieldDef=0x555556ef58f0 ) at /opt/Wtx/Dbo/Field.h:106
Any help or suggestions is appreciated.
Replies (1)
MP RE: Why am I getting stoi throw exception? - Added by Mark Petryk about 5 years ago
Found the problem... my code (as usual)
Sorry for the noise, guys.