public void Dispose() { if (process != null) { SymCleanup(process.Handle); process = null; } if (dbgHelpLib == null || dbgHelpLib.IsClosed) { return; } dbgHelpLib.Dispose(); dbgHelpLib = null; }
public void Dispose() { if (process != null) { try { SymCleanup(process.Handle); } finally { process.Dispose(); } process = null; } if (dbgHelpLib?.IsClosed != false) { return; } dbgHelpLib.Dispose(); dbgHelpLib = null; }