Commits

VirLinden  committed 2885181

SH-2789 FIX - windows debug heap off by default

  • Participants
  • Parent commits 949baba

Comments (0)

Files changed (1)

File indra/newview/llappviewerwin32.cpp

 	// 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];