-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
44 lines (33 loc) · 891 Bytes
/
main.cpp
File metadata and controls
44 lines (33 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "globe/GeneralMacro.h"
#include "ClientKernel.h"
//todo:
//socket
//database
//
int main()
{
{
#ifdef WIN32
ExceptionBase::GetExcep().StartMoniter();//异常生成dump
#endif // WIN32
ClientKernel cKernel;
if (cKernel.InitKernel() != 0)
{
return -1;
}
cKernel.IntoKernelConsole();
}
#ifdef WIN32
//memory leak
//Send all reports to STDOUT
/*_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDOUT);
_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE);
_CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDOUT);
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
_CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDOUT);*/
//_CrtDumpMemoryLeaks();
_CrtMemDumpAllObjectsSince(NULL);
#endif // WIN32
return 0;
}