Cleanup of the joinnetworkgamedialog. Thread creation/termination is now done in main window. Added code to locate memory leaks.

This commit is contained in:
lotodore
2007-02-19 00:39:44 +00:00
parent 0e97914f94
commit 6e7f6dfdbe
5 changed files with 36 additions and 19 deletions
+22
View File
@@ -31,12 +31,34 @@
#include <cstdlib>
#include <ctime>
#ifdef _MSC_VER
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#define ENABLE_LEAK_CHECK() \
{ \
int tmpFlag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG); \
tmpFlag |= _CRTDBG_LEAK_CHECK_DF; \
_CrtSetDbgFlag(tmpFlag); \
}
#endif
#endif
#ifndef ENABLE_LEAK_CHECK
#define ENABLE_LEAK_CHECK()
#endif
using namespace std;
class GuiWrapper;
int main( int argc, char **argv )
{
ENABLE_LEAK_CHECK();
//_CrtSetBreakAlloc(49937);
socket_startup();
srand( time(0) );