NIM_Duilib_Framework
NIM_Duilib_Framework copied to clipboard
很奇怪 有的机子上 关闭时偶现崩溃
问题现象
在对话框中,如果有combo控件,点击这个控件下拉条
在关闭程序时,会偶现崩溃
Unhandled exception at 0x014AAC56 in mydulib_d.exe: 0xC000041D: 用户回调期间遇到未经处理的异常。.
中断到这里
void Window::ReapObjects(Control* pControl) { if (!pControl) { return; }
if (pControl == m_pEventKey) m_pEventKey = NULL;
这个ReapObjects 起什么作用呢 ,我把它注释掉就正常了
-
ui::PlaceHolder {m_sName=L"" m_pWindow=0x4845ed58 {m_hWnd=??? m_OldWndProc=??? m_bSubclassed=??? ...} m_pParent=0x56e48b88 {...} ...} ui::PlaceHolder
这种情况一般有可能是在其他线程的回调中去操作了 UI,请检查一下崩溃时所在的线程是不是在 UI 线程。