System.Windows.Forms.IDataObject dataObject = System.Windows.Forms.Clipboard.GetDataObject();
dataObject.GetDataPresent(clipFormatName);
Object data = dataObject.GetData(clipFormatName);
System.IO.MemoryStream dataStream = data as System.IO.MemoryStream;
data = null;
dataStream.Dispose();
dataStream = null;
然后打开一个窗口,该窗口有许多的textbox combox和 numeriupdown控件,然后他报告See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
   at System.Windows.Forms.Control.DefWndProc(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)这个问题是随机发生的,我肯定和窗口是没有关系的,肯定和剪贴板和MemoryStream的操作导致的,尤其是同一时间重复操作剪贴板,这个问题就跟加容易发生,大虾们怎么解决?谢谢!