protected void CheckPtr (IntPtr p) { if (p == IntPtr.Zero) throw new ApplicationException ("ptr should not Equals IntPtr.Zero"); }