poco icon indicating copy to clipboard operation
poco copied to clipboard

addWritable() not working as accpected

Open Kuurusch opened this issue 2 years ago • 1 comments

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

Kuurusch avatar Apr 25 '23 11:04 Kuurusch

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Apr 25 '24 02:04 github-actions[bot]

This issue was closed because it has been inactive for 60 days since being marked as stale.

github-actions[bot] avatar Jun 24 '24 02:06 github-actions[bot]