From 5765af20176977d9cba38773b4eb0d23b2de3f20 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 12 Aug 2015 17:51:22 +0200 Subject: [PATCH] + avoid slow heap checking in debug mode when loading a mesh file --- src/Mod/Mesh/App/Core/Builder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Mesh/App/Core/Builder.cpp b/src/Mod/Mesh/App/Core/Builder.cpp index 1fe577a4be..143cee2e3f 100644 --- a/src/Mod/Mesh/App/Core/Builder.cpp +++ b/src/Mod/Mesh/App/Core/Builder.cpp @@ -221,7 +221,11 @@ void MeshBuilder::Finish (bool freeMemory) // free all memory of the internal structures // Note: this scope is needed to free memory immediately +#if defined(_MSC_VER) && defined(_DEBUG) + // Just do nothing here as it may take a long time when running the debugger +#else { std::vector().swap(_pointsIterator); } +#endif _points.clear(); SetNeighbourhood();