Troy,
        I have to report  new bug which was probably introduced in the last commit. 
It's related to option management of SWMgr.

See the attached test program where SWMgr::getGlobalOptionValues crashes. It 
also crashes if you use other functions related to options (e.g. 
setGlobalOptionValue).

Thanks,
Joachim
#include <swmgr.h>

int main (int argc, char* argv[]) {
        SWMgr mgr;

//the commented out code works
/* 
        OptionsList globalOptions = mgr.getGlobalOptions();
        for (OptionsList::iterator it = globalOptions.begin(); it != globalOptions.end(); it++) {
                cout << *it << endl;

                OptionsList values = mgr.getGlobalOptionValues((*it).c_str());
                for (OptionsList::iterator it2 = values.begin(); it2 != values.end(); it2++) {
                        cout << "\t"<< *it2 << endl;
                }
        }
*/

//crashes
	OptionsList values = mgr.getGlobalOptionValues("NotYetThere");
        for (OptionsList::iterator it2 = values.begin(); it2 != values.end(); it2++) {
              cout << "\t"<< *it2 << endl;
        }    
};





Reply via email to