Terminating the Symbol Handler
The following code cleans up all memory associated with symbol handling for the specified process, using SymCleanup.
if (SymCleanup(hProcess))
{
// SymCleanup returned success
}
else
{
// SymCleanup failed
DWORD error = GetLastError();
printf("SymCleanup returned error : %d\n", error);
}