1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 18:19:53 +03:00

Enable debug messages and memory check with debug configuration

This commit is contained in:
Davide Beatrici 2018-09-15 19:12:21 +02:00
parent 9a6b871a0e
commit 4e30a40ae1
9 changed files with 45 additions and 1 deletions

View File

@ -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)

View File

@ -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();

View File

@ -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)
{

View File

@ -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");

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();