
Hi,
I get the following exception while using a boost regexp matching
libraries (with Windows Visual Studio, 7.1 environment).
Setup:
static RegexClass::RegularExpression re_exp;
bool
CMyclass::parseExpression(string expression)
{
LoggerPtr logger = Logger::getRootLogger();
ostringstream oss;
RegexClass::RegularExpression *re = &re_exp;
re->Expression = expression;
RegexClass::RegularExpression::ExpressionErrorCode eec =
re->ParseExpression();
if (eec == RegexClass::RegularExpression::REG_NOERROR) {
oss << "Parse successful: " << expression;
logger->info(oss.str());
return true;
}
...
}
Matching call:
bool
CMyClass::matchSpec(RegexClass::RegularExpression *pRe, const char
*stringToMatch)
{
pRe->SetStringToMatch(stringToMatch);
if (pRe->Match()) {
return true;
}
return false;
}
Exception while using expression matcher on Windows Server 2003
Platforms:
Exception Stack Trace
0x0343c900 0x00457374
boost::re_detail::reg_grep2 ::iterator,boost::detail::allocator<char>
,std::basic_string 0x0343c924 0x0045a65b
boost::regex_search