在VS2017中,调试程序时出现异常 SEHException,但 Debug、Release 可正常打开

oldhunter 2019-10-26 12:55:12
我的项目是winform的程序,程序使用了 WebBrowser、Geckofx控件。在VS2017中,调试程序时出现下面的异常,但 Debug、Release 可正常打开没有问题。

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)

请问可能是哪里的问题? 程序使用了 WebBrowser、Geckofx控件,跟这个有关系吗?
...全文
279 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
oldhunter 2019-10-29
  • 打赏
  • 举报
回复
是否跟 ImmSetOpenStatus 方法有关呢? 这个方法好像是设置输入法状态的。

110,532

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧