Added leak check when using windows (WinLeakCheck.h).

Added server to project.
A server can now be started in the project.
This commit is contained in:
Jocke
2015-12-08 13:54:18 +01:00
parent 8f55e90d2d
commit c48c9e1f86
7 changed files with 485 additions and 20 deletions
+17
View File
@@ -0,0 +1,17 @@
#if defined (_WIN64) | defined(_WIN32)
#ifndef WinLeakeCheck_h__
#define WinLeakeCheck_h__
//For memory leak checking
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#ifdef _DEBUG
#ifndef DBG_NEW
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
#define new DBG_NEW
#endif
#endif // _DEBUG
#endif
#endif