Archived
This forum has been archived. Please start a new discussion on GitHub.
How can i use the function getpropertyforprefix()?
terminate
in Help Center
Hi:
I want get the parameters from my config file,following is the code:
1. Ice::PropertiesPtr properties;
2. Ice::PropertyDict proDict;
3. properties = Ice::createProperties();
4. properties->load(path);
5. proDict = properties->getPropertiesForPrefix("filesystem");
when arrives at line 5,the program throws out an exception.
But when I use function properties->getPropertyAsIntWithDefault(segName + "." + key,defVal) ,there is no error.
can you give me some help??
I want get the parameters from my config file,following is the code:
1. Ice::PropertiesPtr properties;
2. Ice::PropertyDict proDict;
3. properties = Ice::createProperties();
4. properties->load(path);
5. proDict = properties->getPropertiesForPrefix("filesystem");
when arrives at line 5,the program throws out an exception.
But when I use function properties->getPropertyAsIntWithDefault(segName + "." + key,defVal) ,there is no error.
can you give me some help??
0
Comments
-
Hi,
Because I don't know which exception is throwed out,I can't describe it.
The programm just pops up a message box of system, which show in the attachment.0 -
Since you only get the error in debug mode, the problem might be caused by a library mix-up. See this FAQ for more details.0
-
Provaly your problem is caused by a library mixup, this is the most common cause for a program to work in release and not in debug mode or viceversa
read this faq for more info about the problem0
