예제 #1
0
 internal static void CloseTrace(ref ulong handle)
 {
     if (handle != INVALID_HANDLE_VALUE)
     {
         TraceEventInterop.CloseTrace(handle);
         handle = INVALID_HANDLE_VALUE;
     }
 }
예제 #2
0
 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
 }