SymCleanup function (dbghelp.h)
Deallocates all resources associated with the process handle.
BOOL IMAGEAPI SymCleanup(
[in] HANDLE hProcess
A handle to the process that was originally passed to the SymInitialize function.
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.
This function frees all resources associated with the process handle. Failure to call this function causes memory and resource leaks in the calling application
All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, call SymInitialize only when your process starts and SymCleanup only when your process ends. It is not necessary for each thread in the process to call these functions.
For an example, see Terminating the Symbol Handler.
|DbgHelp.dll 5.1 or later