開發環境是: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)
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/207437.html
標籤:C#
上一篇:C#在win7下呼叫WebBrowser控制元件的問題
下一篇:下拉提示
