summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewerwin32.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-06-06 14:28:21 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-06-06 14:28:21 -0400
commitd1987a3002efc7252b98e2e570746c66c43e6dd1 (patch)
tree6114c0fc077fedc0b45a0a2918dcbd85f00b7cf8 /indra/newview/llappviewerwin32.cpp
parent542975b4c674c6e13d80f0ec4c18931e769f33b4 (diff)
SH-2789 FIX - windows debug heap off by default
Diffstat (limited to 'indra/newview/llappviewerwin32.cpp')
-rwxr-xr-x[-rw-r--r--]indra/newview/llappviewerwin32.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llappviewerwin32.cpp b/indra/newview/llappviewerwin32.cpp
index 418df8a5b0..53c77fa22e 100644..100755
--- a/indra/newview/llappviewerwin32.cpp
+++ b/indra/newview/llappviewerwin32.cpp
@@ -130,7 +130,9 @@ int APIENTRY WINMAIN(HINSTANCE hInstance,
// This results in a 2-3x improvement in opening a new Inventory window (which uses a large numebr of allocations)
// Note: This won't work when running from the debugger unless the _NO_DEBUG_HEAP environment variable is set to 1
- _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); // default, just making explicit
+ // Enable to get mem debugging within visual studio.
+ //_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
+ _CrtSetDbgFlag(0); // default, just making explicit
ULONG ulEnableLFH = 2;
HANDLE* hHeaps = new HANDLE[MAX_HEAPS];