mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Disabled "Debug Memory Allocation On The Heap" for Debug Version (thx to Birdflu)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2462 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -826,7 +826,16 @@ int PASCAL HandledWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pC
|
||||
// Use this one ONLY if you're having memory corruption issues that can be repeated in a short time
|
||||
// Otherwise it will just run out of memory.
|
||||
//_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_DELAY_FREE_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF);
|
||||
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_EVERY_1024_DF);
|
||||
|
||||
/****************************************************************************************************/
|
||||
/* */
|
||||
/* DEBUG MEMORY ALLOCATION ON THE HEAP : uncomment when required */
|
||||
/* ------------------------------------------------------------------------ */
|
||||
/* */
|
||||
/* _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_EVERY_1024_DF); */
|
||||
/* */
|
||||
/****************************************************************************************************/
|
||||
|
||||
#endif
|
||||
|
||||
ghInstance = hInstance;
|
||||
|
||||
Reference in New Issue
Block a user