Thanks, it works now. regards
-----Ursprüngliche Nachricht----- Von: Koen Deforche [mailto:[email protected]] Gesendet: Montag, 15. März 2010 15:36 An: [email protected] Betreff: Re: [Wt-interest] Cant read configuration properties Hey Roman, 2010/3/15 netconnect - Roman Zotter <[email protected]>: > i updated my Wt version from 3.1.0 to 3.1.1. > > With the older version reading a config property with > readConfigurationProperty worked fine, > > But in the new version the function returns false and the property value is > empty, doesn't matter which property I want to read. > > > > Can you tell me whats wrong here? Possibly a bug? There is a known issue with Wt 3.1.1 which causes it to ignore all but the first <application-settings> block. That is probably what you are hitting ? This is fixed in git versions; the patch is copied below. Regards, koen diff --git a/src/web/Configuration.C b/src/web/Configuration.C index 56ccb8a..66b35cc 100644 --- a/src/web/Configuration.C +++ b/src/web/Configuration.C @@ -103,7 +103,7 @@ std::vector<xml_node<> *> childElements(xml_node<> *element, std::vector<xml_node<> *> result; for (xml_node<> *r = element->first_node(tagName); r; - r = element->next_sibling(tagName)) + r = r->next_sibling(tagName)) result.push_back(r); return result; ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
