
This leads me to believe that boost::regex does not play well with MSVC threads, but according to the Boost site, there aren't any bugs related to this issue for Boost 1.45. As far as I can tell I'm using Boost in thread safe mode (BOOST_HAS_THREADS is defined). I'm probably doing something really dumb related to MSVC threads or related to the way I configured Boost, but I'm not sure what it is! I could switch to using Boost threads, but I would like to minimize the changes to the code. Thanks very much for any help~
I don't see anything obviously wrong with that. My only question, is you say BOOST_HAS_THREADS is defined, are you defining it, or is Boost.Config defining it (if Boost.Config *isn't* setting it, then your project settings are wrong for multithreaded code)? Are you selecting the regex lib to link to manually or letting the auto-linking code do it's work (for minimum chances of bad things happening you should let the auto-linking code select the correct binary)? HTH, John.