创建窗口句柄时出错。
winform吧
全部回复
仅看楼主
level 1
月舞荒时 楼主
System.ComponentModel.Win32Exception (0x80004005): 创建窗口句柄时出错。
在 System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
在 System.Windows.Forms.Control.CreateHandle()
在 System.Windows.Forms.TextBoxBase.CreateHandle()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.ControlCollection.Add(Control value)
在 System.Windows.Forms.TabPage.TabPageControlCollection.Add(Control value)
在 DocReview.ocrinput.control.ControlLoadForDocConfig.AddTabPageControlByDocConfig(OcrInputNew form, TabControl tabControl, TabPage page, JObject resultObj, JnBusConfigDoc doc)
在 DocReview.ocrinput.control.ControlLoadForDocConfig.InitTabControlTabPage(OcrInputNew form, TabControl tabControl, JnBusConfigDoc doc)
在 DocReview.ocrinput.control.ControlLoadForDocConfig.InitTabControl(OcrInputNew form, TabControl tabControl)
在 DocReview.pages.ocr.OcrInputNew.LoadOcrResult()
在 DocReview.pages.ocr.OcrInputNew.button3_Click(Object sender, EventArgs e)
通过百度 所有窗口打开用了using,控件清空也用了 Dispose,还重写了CreateHandle 还是会出现这个问题?请大佬指教
2023年12月26日 08点12分 1
level 1
多放几个截图看看 或者把代码截图发来看看
2023年12月29日 11点12分 2
目前没再出现这个问题了。有个窗口是打开图片的资源,窗口关闭时把picbox.Image设置为null之后就没再出这个问题了
2024年01月02日 06点01分
1