internal static void CloseTrace(ref ulong handle) { if (handle != INVALID_HANDLE_VALUE) { TraceEventInterop.CloseTrace(handle); handle = INVALID_HANDLE_VALUE; } }
public void Close() // call after all reads have completed or upon exception { TraceEventInterop.CloseTrace(ref m_handle); // worst case scenario, process exit will do this }