NIM_Duilib_Framework icon indicating copy to clipboard operation
NIM_Duilib_Framework copied to clipboard

很奇怪 有的机子上 关闭时偶现崩溃

Open shuilan0066 opened this issue 4 years ago • 2 comments

问题现象

在对话框中,如果有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;

image

这个ReapObjects 起什么作用呢 ,我把它注释掉就正常了

shuilan0066 avatar Mar 16 '20 11:03 shuilan0066

image

  •   ui::PlaceHolder	{m_sName=L"" m_pWindow=0x4845ed58 {m_hWnd=??? m_OldWndProc=??? m_bSubclassed=??? ...} m_pParent=0x56e48b88 {...} ...}	ui::PlaceHolder
    

shuilan0066 avatar Mar 16 '20 12:03 shuilan0066

这种情况一般有可能是在其他线程的回调中去操作了 UI,请检查一下崩溃时所在的线程是不是在 UI 线程。

nmgwddj avatar Mar 23 '20 02:03 nmgwddj