Dispose() public method

MsgId of the sender and payload
public Dispose ( ) : void
return void
Exemplo n.º 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"));
        }
Exemplo n.º 2
0
        /// <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;
            }
        }