
My experience with Boost.regex on Win32 is that crashes like that are from either initialization ordering or syntax errors. I would look at the section with "?\ \??" -- is that right? Shouldn't that be "?\\ \\??"?. P.S. You didn't write, but I presume the crash happens on start up. You might also look at it in the VC9 debugger and see if the execption object has any further information. At 04:13 PM 2/21/2009, you wrote:
the following line of code is meant to assist in parsing urls:
boost::regex exp("(?is)(https?)://([^:/?#]+):?(\\d{1,5})?/?([^?#]*)?\ \??([^#]+)?#?(\\w*)");
It runs fine in a linux environment, however if compiled with VC9 on windows, it fails with:
First-chance exception at 0x7c812aeb in test.exe: Microsoft C++ exception: boost ::exception_detail ::clone_impl <boost::exception_detail::error_info_injector<boost::regex_error> > at memory location 0x0012f768..