summaryrefslogtreecommitdiffstats
path: root/source/LeakFinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/LeakFinder.cpp')
-rw-r--r--source/LeakFinder.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/LeakFinder.cpp b/source/LeakFinder.cpp
index fcafd44c2..d8d41883b 100644
--- a/source/LeakFinder.cpp
+++ b/source/LeakFinder.cpp
@@ -113,8 +113,20 @@
#endif
+/* _X: MSVC 2012 (MSC 1700) seems to use a different allocation scheme for STL containers,
+* allocating lots of small objects and running out of memory very soon
+* Thus for MSVC 2012 we cut the callstack buffer length in half
+*/
// Controlling the callstack depth
-#define MAX_CALLSTACK_LEN_BUF 0x2000
+#if (_MSC_VER < 1700)
+ #define MAX_CALLSTACK_LEN_BUF 0x2000
+#else
+ #define MAX_CALLSTACK_LEN_BUF 0x1000
+#endif
+
+
+
+
#define IGNORE_CRT_ALLOC