public void ListenRec(string message) { Invok voke = new Invok(dlgshow); this.Invoke(voke, message); CheckArea(); }
protected void UnInit() { _dicProc.Clear(); _buffer = null; _param = null; _invoker = null; Marshal.FreeHGlobal(_ptr); _ptr = IntPtr.Zero; _size = 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); }