vs2017调试模式下报错:System.Runtime.InteropServices.SEHException (0x80004005): 外部组件发生异常
开发环境是:vs2017+win10
vs调试模式下,经常出现以下错误(导致窗口关闭,算是非捕获异常)
但直接打开编译好的程序时,就不会报错。
System.Runtime.InteropServices.SEHException (0x80004005): 外部组件发生异常。
在 System.Windows.Forms.UnsafeNativeMethods.ImmSetOpenStatus(HandleRef hIMC, Boolean open)
在 System.Windows.Forms.ImeContext.SetOpenStatus(Boolean open, IntPtr handle)
在 System.Windows.Forms.ImeContext.SetImeStatus(ImeMode imeMode, IntPtr handle)
在 System.Windows.Forms.Control.WmImeKillFocus()
在 System.Windows.Forms.Control.WmKillFocus(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.TextBoxBase.WndProc(Message& m)
在 System.Windows.Forms.TextBox.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)