Dispose() public method

MsgId of the sender and payload
public Dispose ( ) : void
return void
コード例 #1
0
        /// <summary>
        /// Disposing
        /// </summary>
        public void Dispose()
        {
            //this.SharmIPC.LogException("dispose test", new Exception("p7"));
            try
            {
                if (mt != null)
                {
                    mt.ReleaseMutex();
                    mt.Close();
                    mt.Dispose();
                    mt = null;
                }
            }
            catch {
            }

            //this.SharmIPC.LogException("dispose test", new Exception("p6"));

            if (rwh != null)
            {
                rwh.Dispose();
                rwh = null;
            }

            //this.SharmIPC.LogException("dispose test", new Exception("p7"));
        }
コード例 #2
0
ファイル: SharedMemory.cs プロジェクト: blake2002/SharmIPC
        /// <summary>
        /// Disposing
        /// </summary>
        public void Dispose()
        {
            try
            {
                if (mt != null)
                {
                    mt.ReleaseMutex();
                    mt.Close();
                    mt.Dispose();
                    mt = null;
                }
            }
            catch {
            }

            if (rwh != null)
            {
                rwh.Dispose();
                rwh = null;
            }
        }