CDialog crash

  • Thread starter Thread starter flaviu_
  • Start date Start date
F

flaviu_

Guest
I trying to find a crash source, for a CDialog based app.

At some point, after 10 seconds timer, a MessageBox from a different lib is show up, and if I choose "Cancel" on this MessageBox, this crash occur:

1436846.png


and call stack is listed here:

00007ffb1b21df23() Unknown
00007ffb1b1d9bbc() Unknown
00007ffb1b1d9ad0() Unknown
> __acrt_lock(__acrt_lock_id _Lock=__acrt_heap_lock) C++
heap_alloc_dbg_internal(const unsigned __int64 size=968, const int block_use=2, const char * const file_name=0x00007ff6f3529f60, const int line_number=223) C++
heap_alloc_dbg(const unsigned __int64 size=968, const int block_use=2, const char * const file_name=0x00007ff6f3529f60, const int line_number=223) C++
_calloc_dbg(unsigned __int64 count=1, unsigned __int64 element_size=968, int block_use=2, const char * file_name=0x00007ff6f3529f60, int line_number=223) C++
get_ptd_head() C++
internal_getptd_noexit() C++
__acrt_getptd_noexit() C++
_errno() C++
__crt_stdio_output::output_processor<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t>,__crt_stdio_output::standard_base<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t> > >::output_processor<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t>,__crt_stdio_output::standard_base<wchar_t,__crt_stdio_output::string_output_adapter<wchar_t> > >(const __crt_stdio_output::string_output_adapter<wchar_t> & output_adapter={...}, const unsigned __int64 options=6, const wchar_t * const format=0x00007ff6f33ab440, __crt_locale_pointers * const locale=0x000000bf648fc7f0, char * const arglist=0x000000bf648fd060) C++
common_vsprintf<__crt_stdio_output::standard_base,wchar_t>(const unsigned __int64 options=6, wchar_t * const buffer=0x0000000000000000, const unsigned __int64 buffer_count=0, const wchar_t * const format=0x00007ff6f33ab440, __crt_locale_pointers * const locale=0x0000000000000000, char * const arglist=0x000000bf648fd060) C++
__stdio_common_vswprintf(unsigned __int64 options=6, wchar_t * buffer=0x0000000000000000, unsigned __int64 buffer_count=0, const wchar_t * format=0x00007ff6f33ab440, __crt_locale_pointers * locale=0x0000000000000000, char * arglist=0x000000bf648fd060) C++
[External Code]
_AfxTraceMsg(const wchar_t * lpszPrefix=0x00007ff6f33726e8, const tagMSG * pMsg=0x00000227e9d43f88) C++
AfxCallWndProc(CWnd * pWnd=0x000000bf648fd9a0, HWND__ * hWnd=0x0000000001141bee, unsigned int nMsg=134, unsigned __int64 wParam=0, __int64 lParam=0) C++
AfxWndProc(HWND__ * hWnd=0x0000000001141bee, unsigned int nMsg=134, unsigned __int64 wParam=0, __int64 lParam=0) C++
[External Code]
AfxInternalPumpMessage() C++
CWinThread::PumpMessage() C++
AfxPumpMessage() C++
CWnd::RunModalLoop(unsigned long dwFlags=4) C++
CWnd::CreateRunDlgIndirect(const DLGTEMPLATE * lpDialogTemplate=0x00007ff6f3707470, CWnd * pParentWnd=0x0000000000000000, HINSTANCE__ * hInst=0x00007ff6f2500000) C++
CDialog::DoModal() C++
CMyApp::InitInstance() C++
AfxWinMain(HINSTANCE__ * hInstance=0x00007ff6f2500000, HINSTANCE__ * hPrevInstance=0x0000000000000000, wchar_t * lpCmdLine=0x00000227e9d32d74, int nCmdShow=10) C++
wWinMain(HINSTANCE__ * hInstance=0x00007ff6f2500000, HINSTANCE__ * hPrevInstance=0x0000000000000000, wchar_t * lpCmdLine=0x00000227e9d32d74, int nCmdShow=10) C++


The fact is that, if I set another foreground window, other than CMyApp (let say Notepad, Windows Explorer, whatever), and that MessageBox appear, when I hit "Cancel" button, everything is alright, the crash NOT occur ...


This thing tell me that is focus problem ... do you met this kind of errors ? What should I do to find the cause of the crash ? Could you help me ?


Thank you.

Continue reading...
 
Back
Top