--------------------------------- SetDebuggingOptions On debug builds this will tell us about memory leaks
| 57 | // On debug builds this will tell us about memory leaks |
| 58 | // |
| 59 | void SetDebuggingOptions() |
| 60 | { |
| 61 | //notify user if heap is corrupt |
| 62 | HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0); |
| 63 | |
| 64 | // Enable run-time memory leak check for debug builds. |
| 65 | #if defined(ET_DEBUG) |
| 66 | _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); |
| 67 | |
| 68 | typedef HRESULT(__stdcall *fPtr)(const IID&, void**); |
| 69 | |
| 70 | //_CrtSetBreakAlloc(106750); |
| 71 | #endif |
| 72 | } |