1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 00:04:57 +03:00

Merge PR #736: vpntest project for programmers: runs VPN Server / VPN Client / VPN Bridge in test mode with full debug console output and memory leak checks

This commit is contained in:
Davide Beatrici
2018-10-08 06:33:47 +02:00
committed by GitHub
13 changed files with 831 additions and 2 deletions

View File

@ -1151,6 +1151,11 @@ void PrintKernelStatus()
Print(" !!! MEMORY LEAKS DETECTED !!!\n\n");
if (g_memcheck == false)
{
if (IsHamMode())
{
Print(" Enable /memcheck startup option to see the leaking memory heap.\n");
Print(" Press Enter key to exit the process.\n");
}
GetLine(NULL, 0);
}
}

View File

@ -157,7 +157,15 @@ void MemoryDebugMenu()
TOKEN_LIST *t;
char *cmd;
Print("Mayaqua Kernel Memory Debug Tools\n"
"Copyright (c) SoftEther Corporation. All Rights Reserved.\n\n");
"Copyright (c) SoftEther VPN Project. All Rights Reserved.\n\n");
#ifndef OS_WIN32
Print("Unfortunately The call stack is not recorded on non-Windows systems\n");
Print("since UnixGetCallStack() and UnixGetCallStackSymbolInfo() is not implemented.\n");
Print("Therefore please use valgrind or other memory leak check tools\n");
Print("to get the actual call stacks of memory leak causes.\n\n");
#endif // OS_WIN32
g_memcheck = false;
while (true)
{