aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-09-10 06:26:56 +0000
committermarha <marha@users.sourceforge.net>2009-09-10 06:26:56 +0000
commitb8d02796c52d4cedbacb49099edf9e59970276f7 (patch)
tree5e47a19ebabbd097ae9400a22808162dbaaf2e71
parentfbca01c816a76042d6eb45996d00e74bc5445382 (diff)
downloadvcxsrv-b8d02796c52d4cedbacb49099edf9e59970276f7.tar.gz
vcxsrv-b8d02796c52d4cedbacb49099edf9e59970276f7.tar.bz2
vcxsrv-b8d02796c52d4cedbacb49099edf9e59970276f7.zip
Added possible heap checking code (disabled by default)1.1.0
-rw-r--r--xorg-server/dix/main.c15
1 files changed, 15 insertions, 0 deletions
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 <crtdbg.h>
+#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";