예제 #1
0
파일: Dde.cs 프로젝트: mo5h/omeo
 public void Dispose()
 {
     if ((_handle != IntPtr.Zero) && (_dde != null))
     {
         if (!Dde.DdeDisconnect(_handle))
         {
             throw new DdeException("Could not terminate the conversation.", _dde.GetLastError());
         }
         _handle = IntPtr.Zero;
         _dde    = null;
     }
     GC.SuppressFinalize(this);
 }