From b8d02796c52d4cedbacb49099edf9e59970276f7 Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 10 Sep 2009 06:26:56 +0000 Subject: Added possible heap checking code (disabled by default) --- xorg-server/dix/main.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/xorg-server/dix/main.c b/xorg-server/dix/main.c index e49d6cd11..e667b2fc7 100644 --- a/xorg-server/dix/main.c +++ b/xorg-server/dix/main.c @@ -116,6 +116,10 @@ Equipment Corporation. #include "dpmsproc.h" #endif +#ifdef _DEBUG +#include +#endif + extern void Dispatch(void); extern void InitProcVectors(void); @@ -134,6 +138,17 @@ int main(int argc, char *argv[], char *envp[]) { int i; HWEventQueueType alwaysCheckForInput[2]; + #ifdef _DEBUG + //int TmpFlag=_CrtSetDbgFlag( _CRTDBG_REPORT_FLAG); + + //TmpFlag|=_CRTDBG_ALLOC_MEM_DF; + //TmpFlag|=_CRTDBG_DELAY_FREE_MEM_DF; + //TmpFlag|=_CRTDBG_CHECK_ALWAYS_DF; + //TmpFlag|=_CRTDBG_CHECK_CRT_DF; + //TmpFlag|=_CRTDBG_LEAK_CHECK_DF; + + //_CrtSetDbgFlag(TmpFlag); + #endif ptw32_processInitialize(); display = "0"; -- cgit v1.2.3