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); }