Solve sigsegv (old way of ParserHandler was still used)

fixed GH #145: Solve sigsegv (old way of ParserHandler was still used)
This commit is contained in:
Aleksandar Fabijanic 2013-04-07 12:00:34 -05:00
parent f9aea9acdf
commit a6f8d07757

View File

@ -90,12 +90,10 @@ int main(int argc, char** argv)
std::cout << "--------------------------" << std::endl;
try
{
Poco::JSON::ParseHandler handler;
Poco::JSON::Parser parser;
parser.setHandler(&handler);
sw.restart();
parser.parse(jsonStr);
Poco::DynamicAny result = handler.result();
Poco::DynamicAny result = parser.result();
sw.stop();
std::cout << "parsed/handled in " << sw.elapsed() << " [us]," << std::endl;