mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 09:29:52 +03:00
Enable debug messages and memory check with debug configuration
This commit is contained in:
parent
9a6b871a0e
commit
4e30a40ae1
@ -783,7 +783,11 @@ UINT SWExec()
|
||||
MayaquaMinimalMode();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, 0, NULL);
|
||||
#else
|
||||
InitMayaqua(false, false, 0, NULL);
|
||||
#endif
|
||||
InitCedar();
|
||||
|
||||
if (is_datafile_exists == false)
|
||||
|
@ -4565,7 +4565,11 @@ void CALLBACK MsServiceDispatcher(DWORD argc, LPTSTR *argv)
|
||||
|
||||
//// Initialization
|
||||
// Start of the Mayaqua
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, 0, NULL);
|
||||
#else
|
||||
InitMayaqua(false, false, 0, NULL);
|
||||
#endif
|
||||
|
||||
// Stop the MS-IME
|
||||
MsDisableIme();
|
||||
@ -4740,7 +4744,11 @@ UINT MsService(char *name, SERVICE_FUNCTION *start, SERVICE_FUNCTION *stop, UINT
|
||||
}
|
||||
|
||||
// Start of the Mayaqua
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, 0, NULL);
|
||||
#else
|
||||
InitMayaqua(false, false, 0, NULL);
|
||||
#endif
|
||||
|
||||
// Stop the MS-IME
|
||||
MsDisableIme();
|
||||
|
@ -2753,7 +2753,11 @@ RESTART_PROCESS:
|
||||
}
|
||||
else if (argc >= 3 && StrCmpi(argv[1], UNIX_SVC_ARG_START) == 0 && StrCmpi(argv[2], UNIX_SVC_ARG_FOREGROUND) == 0)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, argc, argv);
|
||||
#else
|
||||
InitMayaqua(false, false, argc, argv);
|
||||
#endif
|
||||
UnixExecService(name, start, stop);
|
||||
FreeMayaqua();
|
||||
}
|
||||
@ -2769,7 +2773,11 @@ void UnixServiceMain(int argc, char *argv[], char *name, SERVICE_FUNCTION *start
|
||||
{
|
||||
UINT mode = 0;
|
||||
// Start of the Mayaqua
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, argc, argv);
|
||||
#else
|
||||
InitMayaqua(false, false, argc, argv);
|
||||
#endif
|
||||
|
||||
if (argc >= 2)
|
||||
{
|
||||
|
@ -136,7 +136,11 @@
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
MayaquaMinimalMode();
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, argc, argv);
|
||||
#else
|
||||
InitMayaqua(false, false, argc, argv);
|
||||
#endif
|
||||
InitCedar();
|
||||
|
||||
Print("hamcore.se2 Build Utility\n");
|
||||
|
@ -143,7 +143,11 @@ int main(int argc, char *argv[])
|
||||
SetConsoleTitleA(CEDAR_PRODUCT_STR " VPN Command Line Utility");
|
||||
#endif // OS_WIN32
|
||||
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, argc, argv);
|
||||
#else
|
||||
InitMayaqua(false, false, argc, argv);
|
||||
#endif
|
||||
InitCedar();
|
||||
|
||||
s = GetCommandLineUniStr();
|
||||
|
@ -136,7 +136,11 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, char *CmdLine, int CmdShow)
|
||||
{
|
||||
InitProcessCallOnce();
|
||||
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, 0, NULL);
|
||||
#else
|
||||
InitMayaqua(false, false, 0, NULL);
|
||||
#endif
|
||||
InitCedar();
|
||||
|
||||
|
||||
|
@ -355,7 +355,11 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, char *CmdLine, int CmdShow)
|
||||
{
|
||||
InitProcessCallOnce();
|
||||
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, 0, NULL);
|
||||
#else
|
||||
InitMayaqua(false, false, 0, NULL);
|
||||
#endif
|
||||
EnableProbe(false);
|
||||
InitCedar();
|
||||
SetHamMode();
|
||||
|
@ -1635,9 +1635,13 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, char *CmdLine, int CmdShow)
|
||||
{
|
||||
INSTANCE *instance;
|
||||
InitProcessCallOnce();
|
||||
#ifdef DEBUG
|
||||
is_debug = true;
|
||||
#else
|
||||
is_debug = false;
|
||||
#endif
|
||||
MayaquaMinimalMode();
|
||||
InitMayaqua(false, is_debug, 0, NULL);
|
||||
InitMayaqua(is_debug, is_debug, 0, NULL);
|
||||
InitCedar();
|
||||
ViSetSkip();
|
||||
ViLoadStringTables();
|
||||
|
@ -134,7 +134,11 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, char *CmdLine, int CmdShow)
|
||||
{
|
||||
InitProcessCallOnce();
|
||||
|
||||
#ifdef DEBUG
|
||||
InitMayaqua(true, true, 0, NULL);
|
||||
#else
|
||||
InitMayaqua(false, false, 0, NULL);
|
||||
#endif
|
||||
InitCedar();
|
||||
SMExec();
|
||||
FreeCedar();
|
||||
|
Loading…
Reference in New Issue
Block a user