Я перешел на использование Visual Studio 2005, и проблема исчезла, но теперь я получаю исключение в конце приложения:
Необработанное исключение в 0x0042d935 в myApp.exe: 0xC0000005: Место чтения нарушения прав доступа 0xe06d7390.
стек вызовов
kernel32.dll! 7c812afb ()
[Указанные ниже кадры могут быть неправильными и / или отсутствующими, символы не загружены для kernel32.dll]
kernel32.dll! 7c812afb ()
msvcp80.dll! 7c421201 ()
MSVCP80.DLL! 7c42394d ()
msvcp80.dll! 7c423958 ()
msvcr80.dll! 78158e89 ()
myApp.exe! std :: _ Дерево, std :: allocator>, std :: less, std :: allocator, std :: allocator>>>, 0>> :: erase (std :: _ Tree, std :: allocator> , std :: less, std :: allocator, std :: allocator>>>, 0>> :: iterator _Where = {...}) Строка 759
msvcr80.dll! 78134c39 ()
myApp.exe! std :: _ Дерево, std :: allocator>, std :: less, std :: allocator, std :: allocator>>>, 0>> :: erase (std :: _ Tree, std :: allocator> , std :: less, std :: allocator, std :: allocator>>>, 0>> :: iterator _First = {...}, std :: _ Tree, std :: allocator>, std :: less, std :: allocator, std :: allocator>>>, 0>> :: iterator _Last = {...}) Строка 926 + 0x4f байт
myApp.exe! boost :: re_detail :: w32_regex_traits_implementation :: ~ w32_regex_traits_implementation () + 0xc0 байт
myApp.exe! boost :: detail :: sp_counting_impl_p> :: dispose () + 0xf байт
myApp.exe! std :: list const>, длинное const без знака *>, std :: allocator const>, длинное const без знака *>>> :: clear () + 0x3e байт
myApp.exe! boost :: object_cache> :: data :: ~ data () + 0x6b байт
msvcr80.dll! 781319d8 ()
MSVCR80.DLL! 78131a4b ()
myApp.exe! __tmainCRTStartup () Строка 603
kernel32.dll! 7c817077 ()