我一运行“OpenFileDialog dialog = new OpenFileDialog();dialog.ShowDialog();”就会抛出
ArgumentException: GCHandle value belongs to a different domain
System.Runtime.InteropServices.GCHandle.op_Explicit (IntPtr value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs:127)
System.Windows.Forms.XplatUIWin32.GetMessage (System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, Boolean blocking)
System.Windows.Forms.XplatUIWin32.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax)
System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax)
System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context)
System.Windows.Forms.Form.ShowDialog (IWin32Window owner)
(wrapper remoting-invoke-with-check) System.Windows.Forms.Form:ShowDialog (System.Windows.Forms.IWin32Window)
System.Windows.Forms.CommonDialog.ShowDialog (IWin32Window owner)System.Windows.Forms.CommonDialog.ShowDialog ()
(wrapper remoting-invoke-with-check) System.Windows.Forms.CommonDialog:ShowDialog ()
SetPanel.SelectAvatarPic (System.String uid) (at Assets/Scripts/UIPanel/SetPanel.cs:137)
SetPanel.BtnEditAvatarClick () (at Assets/Scripts/UIPanel/SetPanel.cs:86)
这个错误。。。。。