Visual Studio C ++ exception ... weirdness

I have a Qt application that I compile in the release configuration , run, and then execute operation X in the program. Everything is working fine.

Then I compile it in the debug configuration , run without debugging (so CTRL + F5), perform operation X in the program. Everything still works fine.

But when I try to start the debugging configuration with debugging (so it's just F5), and then perform the X operation, Visual Studio breaks with a message that the exception was thrown ... in a completely unrelated part of the program (the executable code is far from the site where VS is broken, in the QHash template) ... and then VS freezes, and I have to kill it using Task Manager. I can repeat this infinity to infinity, and it always worries the same.

Boost :: exception is used for exceptions. VS - 2008, SP1. Qt - 4.6.2 using the precompiled VS binaries from the Qt site.

Does anyone know what is going on?

+3
source share
1 answer

Visual Studio , " ", , , , .

, Debug -> Exceptions (Ctrl + Alt + E) (un) .

, "", , .

_HAS_ITERATOR_DEBUGGING ( ), , , . , , - "".

+4

Source: https://habr.com/ru/post/1733955/


All Articles