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:
@@ -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
|
||||
Reference in New Issue
Block a user