poco
poco copied to clipboard
addWritable() not working as accpected
Have libpoco-dev 1.11.0-3 and the following strange behaviour:
When I add an XMLConfiguration with addWritable() to a LayeredConfiguration, changes made with setBool() for example are not written to the XML-file. What do I miss?
XMLConfiguration* xmlTest = new XMLConfiguration("./config2.xml");
Poco::AutoPtr<Poco::Util::LayeredConfiguration> test(new Poco::Util::LayeredConfiguration());
std::cout << "ReferenceCount: " << test->referenceCount() << std::endl;
test->addWriteable(xmlTest, 0);
//test->add(xmlConfig, 0);
std::cout << "ReferenceCount2: " << test->referenceCount() << std::endl;
test->setBool("test3", true);
What is strange, also referenceCount() is returning always 1
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 60 days since being marked as stale.