http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/c4eb85ce-1c4d-4b2e-a94d-d41cf6eee752I have the following code, when compiled in debug or release mode it works fine. When I add the _SECURE_SCL=0 however, its crashes with the following call-stack:**************************************************example.exe!_crt_debugger_hook(int _Reserved=3619112) Line 65 Cexample.exe!_invalid_parameter(const wchar_t * pszExpression=0x00000000, const wchar_t * pszFunction=0x00000000, const wchar_t * pszFile=0x00000000, unsigned int nLine=0, unsigned int pReserved=0) Line 112 + 0x7 bytes C++example.exe!_invalid_parameter_noinfo() Line 125 + 0xc bytes C++example.exe!boost::match_results<std::_String_const_iterator<char,std::char_traits<char>,std::allocator<char> >,std::allocator<boost::sub_match<std::_String_const_iterator<char,std::char_traits<char>,std::allocator<char> > > > >::set_size() + 0x5b bytes C++example.exe!boost::re_detail::perl_matcher<std::_String_const_iterator<char,std::char_traits<char>,std::allocator<char> >,std::allocator<boost::sub_match<std::_String_const_iterator<char,std::char_traits<char>,std::allocator<char> > > >,boost::regex_traits<char,boost::w32_regex_traits<char> > >::find_imp() + 0xc9 bytes C++**************************************************I've successfully been able to run the code in release using vc8.0, intel v11 (/o2) and gcc 4.4 (O2 and O3). I'm not sure where the trouble lies, but I think its got to do with a VS patch done within the last month, because this particular bit of code was working last time I checked (late nov '09).Other info:VS2008 Team, SP1Command Line: /O2 /Oi /Ot /GL /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "NOMINMAX" /D "_SCL_SECURE_NO_WARNINGS" /D "_SECURE_SCL=0" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MT /Gy /Fo"Release\\" /Fd"Release\vc90.pdb" /W4 /nologo /c /Zi /TP /errorReport:prompt
Product Language
Version
Operating System
Operating System Language
Steps to Reproduce
Actual Results
Expected Results
Please wait...