示例#1
0
        public void ListenRec(string message)
        {
            Invok voke = new Invok(dlgshow);

            this.Invoke(voke, message);
            CheckArea();
        }
示例#2
0
 protected void UnInit()
 {
     _dicProc.Clear();
     _buffer  = null;
     _param   = null;
     _invoker = null;
     Marshal.FreeHGlobal(_ptr);
     _ptr  = IntPtr.Zero;
     _size = 0;
 }
示例#3
0
        protected bool Init(int size)
        {
            _size = size;
            _ptr  = Marshal.AllocHGlobal(size);
            if (_ptr == IntPtr.Zero)
            {
                return(false);
            }

            _invoker = new Invok(this);
            _param   = new Context(this);
            _buffer  = new SwapBuffer(_ptr, size);

            return(true);
        }