예제 #1
0
파일: Class165.cs 프로젝트: uwx/Open-GHTCP
 public void Dispose()
 {
     if (_struct660.Intptr0 != IntPtr.Zero)
     {
         Class162.waveOutUnprepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660));
         _gchandle0.Free();
         _struct660.Intptr0 = IntPtr.Zero;
     }
     _autoResetEvent0.Close();
     if (_gchandle1.IsAllocated)
     {
         _gchandle1.Free();
     }
     GC.SuppressFinalize(this);
 }
예제 #2
0
 public void method_0(bool bool0)
 {
     if (_gchandle1.IsAllocated)
     {
         _gchandle1.Free();
     }
     if (_gchandle0.IsAllocated)
     {
         _gchandle0.Free();
     }
     if (_gchandle2.IsAllocated)
     {
         _gchandle2.Free();
     }
     if (_intptr0 != IntPtr.Zero)
     {
         lock (_object0)
         {
             Class162.waveOutUnprepareHeader(_intptr0, ref _struct660, Marshal.SizeOf(_struct660));
         }
         _intptr0 = IntPtr.Zero;
     }
 }